mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Merge pull request #5390 from maybejulian/declareOnTypeAliasInDts
Allow type aliases to omit 'declare' keyword in '.d.ts' files
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
=== tests/cases/compiler/typeAliasDeclareKeyword01.d.ts ===
|
||||
type Foo = number;
|
||||
>Foo : Symbol(Foo, Decl(typeAliasDeclareKeyword01.d.ts, 0, 0))
|
||||
|
||||
declare type Bar = string;
|
||||
>Bar : Symbol(Bar, Decl(typeAliasDeclareKeyword01.d.ts, 0, 18))
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
=== tests/cases/compiler/typeAliasDeclareKeyword01.d.ts ===
|
||||
type Foo = number;
|
||||
>Foo : number
|
||||
|
||||
declare type Bar = string;
|
||||
>Bar : string
|
||||
|
||||
2
tests/cases/compiler/typeAliasDeclareKeyword01.d.ts
vendored
Normal file
2
tests/cases/compiler/typeAliasDeclareKeyword01.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
type Foo = number;
|
||||
declare type Bar = string;
|
||||
Reference in New Issue
Block a user