Skip to content

Commit 320f218

Browse files
committed
Fix issue with import of type index.d.ts
1 parent 26ef2c4 commit 320f218

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import {TemplateLiteralPair} from './src/transform-inline/visitor-utils';
2-
31
/**
42
* Checks if the given argument is assignable to the given type-argument.
53
*
@@ -260,6 +258,8 @@ interface ExpectedNull {
260258
type: 'null';
261259
}
262260

261+
type TemplateLiteralPair = [string, 'string' | 'number' | 'bigint' | 'any' | 'undefined' | 'null' | undefined];
262+
263263
interface ExpectedTemplateLiteral {
264264
type: 'template-literal'
265265
value: TemplateLiteralPair[]

src/transform-inline/visitor-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Reason } from '../../index';
88
* a pair of {@link ts.TemplateLiteralType.texts} and the `intrinsicName`s for {@link ts.TemplateLiteralType.types},
99
* @see https://github.com/microsoft/TypeScript/pull/40336
1010
*/
11-
export type TemplateLiteralPair = [string, 'string' | 'number' | 'bigint' | 'any' | 'undefined' | 'null' | undefined]
11+
export type TemplateLiteralPair = [string, 'string' | 'number' | 'bigint' | 'any' | 'undefined' | 'null' | undefined];
1212

1313
export const objectIdentifier = ts.createIdentifier('object');
1414
export const pathIdentifier = ts.createIdentifier('path');

0 commit comments

Comments
 (0)