Skip to content

Commit 943f499

Browse files
authored
Merge pull request #92 from DetachHead/master
template literal types
2 parents 225fbb3 + a703e90 commit 943f499

File tree

8 files changed

+2779
-23
lines changed

8 files changed

+2779
-23
lines changed

index.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {TemplateLiteralPair} from './src/transform-inline/visitor-utils';
2+
13
/**
24
* Checks if the given argument is assignable to the given type-argument.
35
*
@@ -258,6 +260,11 @@ interface ExpectedNull {
258260
type: 'null';
259261
}
260262

263+
interface ExpectedTemplateLiteral {
264+
type: 'template-literal'
265+
value: TemplateLiteralPair[]
266+
}
267+
261268
type Reason = ExpectedFunction
262269
| ExpectedString
263270
| ExpectedNumber
@@ -277,7 +284,8 @@ type Reason = ExpectedFunction
277284
| ExpectedNull
278285
| ExpectedStringLiteral
279286
| ExpectedNumberLiteral
280-
| ExpectedBooleanLiteral;
287+
| ExpectedBooleanLiteral
288+
| ExpectedTemplateLiteral;
281289

282290
/**
283291
* Set default getErrorObject function used for transpiled source.

0 commit comments

Comments
 (0)