Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for export declarations.
- Loading branch information
Showing
80 changed files
with
7,347 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// This file contains some export declarations that appear before the | ||
// symbols they export. This is done on purpose to ensure that typedoc | ||
// does not choke on such order, which is legal as far as TS is | ||
// concerned. | ||
export { funcFromMod, someVarFromMod as someVarFromModRenamed, SomeClassFromMod, | ||
SomeInterfaceFromMod as SomeInterfaceFromModRenamed } from "./mod"; | ||
export * from "./mod2"; | ||
|
||
export { exportedLocalFunction, exportedLocalFunction2 } | ||
|
||
function exportedLocalFunction(): boolean { return true; } | ||
|
||
function exportedLocalFunction2(): boolean { return true; } | ||
|
||
export { exportedLocalFunction3 as renamedExportedLocalFunction3, | ||
exportedLocalFunction4 as renamedExportedLocalFunction4 } | ||
|
||
function exportedLocalFunction3(a: string, b: number): void {} | ||
function exportedLocalFunction4(c: number, d: string): void {} | ||
|
||
const notExportedVar = 1; | ||
export const exportedVar1 = notExportedVar; | ||
|
||
export const exportedVar2 = 1; | ||
|
||
export default function defaultSymbol() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export function funcFromMod(a: number): void { | ||
a++; | ||
} | ||
|
||
export const someVarFromMod: string = "some value"; | ||
|
||
export class SomeClassFromMod { | ||
property: number = 1; | ||
} | ||
|
||
export interface SomeInterfaceFromMod { | ||
foo: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export function funcFromMod2(a: number): void { | ||
a++; | ||
} | ||
|
||
export const someVarFromMod2: string = "some value"; | ||
|
||
export class SomeClassFromMod2 { | ||
property: number = 1; | ||
} | ||
|
||
export interface SomeInterfaceFromMod2 { | ||
foo: number; | ||
} | ||
|
||
export { funcFromMod as funcFromModRenamedInMod2 } from "./mod"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.