Skip to content

Commit 643439e

Browse files
committed
rename index.d.ts to types.d.ts
1 parent a173756 commit 643439e

File tree

190 files changed

+190
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+190
-190
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type {
1616
RequiredOptions,
1717
SupportLanguage
1818
} from 'prettier';
19-
import type { AstNode } from './slang-nodes/index.d.ts';
19+
import type { AstNode } from './slang-nodes/types.d.ts';
2020

2121
const slangParserId = 'slang-solidity';
2222
const antlrParserId = 'solidity-parse';

src/slang-comments/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import handlers from './handlers/index.js';
22

33
import type { ParserOptions } from 'prettier';
4-
import type { AstNode, Comment } from '../slang-nodes/index.d.ts';
4+
import type { AstNode, Comment } from '../slang-nodes/types.d.ts';
55

66
function ownLine(
77
comment: Comment,

src/slang-comments/handlers/add-collection-node-first-comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { util } from 'prettier';
22

3-
import type { Comment, CollectionNode } from '../../slang-nodes/index.d.ts';
3+
import type { Comment, CollectionNode } from '../../slang-nodes/types.d.ts';
44

55
const { addDanglingComment, addLeadingComment } = util;
66

src/slang-comments/handlers/add-collection-node-last-comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { util } from 'prettier';
22

3-
import type { Comment, CollectionNode } from '../../slang-nodes/index.d.ts';
3+
import type { Comment, CollectionNode } from '../../slang-nodes/types.d.ts';
44

55
const { addDanglingComment, addTrailingComment } = util;
66

src/slang-comments/handlers/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Comment, StrictAstNode } from '../../slang-nodes/index.d.ts';
1+
import type { Comment, StrictAstNode } from '../../slang-nodes/types.d.ts';
22

33
interface HandlerParams {
44
text: string;

src/slang-comments/printer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isComment } from '../slang-utils/is-comment.js';
22

33
import type { AstPath, Doc } from 'prettier';
4-
import type { AstNode } from '../slang-nodes/index.d.ts';
4+
import type { AstNode } from '../slang-nodes/types.d.ts';
55

66
export function printComment(commentPath: AstPath<AstNode>): Doc {
77
const comment = commentPath.getNode()!;

src/slang-nodes/AdditiveExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Expression } from './Expression.js';
66

77
import type * as ast from '@nomicfoundation/slang/ast';
88
import type { AstPath, Doc, ParserOptions } from 'prettier';
9-
import type { AstNode } from './index.d.ts';
9+
import type { AstNode } from './types.d.ts';
1010
import type { PrintFunction, SlangNode } from '../types.d.ts';
1111

1212
const tryToHug = createHugFunction(['%']);

src/slang-nodes/AndExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Expression } from './Expression.js';
55

66
import type * as ast from '@nomicfoundation/slang/ast';
77
import type { AstPath, Doc, ParserOptions } from 'prettier';
8-
import type { AstNode } from './index.d.ts';
8+
import type { AstNode } from './types.d.ts';
99
import type { PrintFunction, SlangNode } from '../types.d.ts';
1010

1111
export class AndExpression implements SlangNode {

src/slang-nodes/ArgumentsDeclaration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { NamedArgumentsDeclaration } from './NamedArgumentsDeclaration.js';
55

66
import type * as ast from '@nomicfoundation/slang/ast';
77
import type { AstPath, Doc, ParserOptions } from 'prettier';
8-
import type { AstNode } from './index.d.ts';
8+
import type { AstNode } from './types.d.ts';
99
import type { PrintFunction, SlangNode } from '../types.d.ts';
1010

1111
export class ArgumentsDeclaration implements SlangNode {

src/slang-nodes/ArrayExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ArrayValues } from './ArrayValues.js';
55

66
import type * as ast from '@nomicfoundation/slang/ast';
77
import type { AstPath, Doc, ParserOptions } from 'prettier';
8-
import type { AstNode } from './index.d.ts';
8+
import type { AstNode } from './types.d.ts';
99
import type { PrintFunction, SlangNode } from '../types.d.ts';
1010

1111
const { group } = doc.builders;

0 commit comments

Comments
 (0)