-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
173 additions
and
5 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
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,7 @@ | ||
# STANDARD | ||
|
||
```ts | ||
function foo(num: number) { | ||
return 123; | ||
} | ||
``` |
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,4 @@ | ||
{ | ||
"name": "reexports", | ||
"version": "1.0.0" | ||
} |
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 @@ | ||
export * from './other'; |
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,112 @@ | ||
/** | ||
* a type | ||
* @beta | ||
*/ | ||
export type Type = 'standard'; | ||
|
||
/** | ||
* short description | ||
* | ||
* long description with a link to {@link bizz}. did it work? | ||
* what about our own tokens: {@apilink Foo} and {@doclink intro}! | ||
* and some inline `code`??? | ||
* | ||
* ``` | ||
* let dontForget = 'block code'; | ||
* ``` | ||
* | ||
* @param {String} msg description | ||
* @param other without type | ||
* @returns returns the param | ||
*/ | ||
export function comments(msg: string, other: boolean) {} | ||
|
||
/** | ||
* newy new guy | ||
* @param a a thing | ||
* @param b b thing | ||
* @alpha | ||
*/ | ||
export function bizz(a: string, b: string): string; | ||
|
||
/** | ||
* newy new guy | ||
* @param a a thing | ||
* @param b b thing | ||
* @param c c thing | ||
* @beta | ||
*/ | ||
export function bizz(a: string, b: string, c: string): string; | ||
|
||
/** | ||
* a thing for a thing | ||
* @param a id | ||
* @returns returns the param | ||
* @beta | ||
*/ | ||
export function bizz(...args: string[]): string { | ||
return args[0]; | ||
} | ||
|
||
/** | ||
* @param {string} [a] thing | ||
* @param {string} [b="b"] thing | ||
* @param {string} [c="c override"] thing | ||
*/ | ||
export function defs(a?: string, b?: string, c: string = 'c') {} | ||
|
||
/** | ||
* thing for a thing | ||
* @beta | ||
*/ | ||
export interface Foo { | ||
/** | ||
* very experimental | ||
* @alpha | ||
* @default "foo" | ||
*/ | ||
foo: string; | ||
|
||
/** | ||
* very experimental | ||
* @experimental | ||
*/ | ||
a: string; | ||
|
||
/** | ||
* @default 123 | ||
*/ | ||
int?: number; | ||
} | ||
|
||
/** | ||
* ::: | ||
* standard | ||
* ::: | ||
* | ||
* :::note | ||
* with type | ||
* ::: | ||
* | ||
* ::: title | ||
* title only | ||
* ::: | ||
* | ||
* :::info title | ||
* with type | ||
* | ||
* and title | ||
* ::: | ||
* | ||
* :::success | ||
* | ||
* extra new lines | ||
* | ||
* ::: | ||
*/ | ||
export function admonitions() {} | ||
|
||
/** | ||
* @throws something | ||
*/ | ||
export function errors() {} |
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,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"declarationDir": "dts", | ||
"outDir": "dts", | ||
"rootDir": "src", | ||
"emitDeclarationOnly": true | ||
}, | ||
"exclude": [ | ||
"dts", | ||
"tests" | ||
], | ||
"extends": "../../../tsconfig.options.json", | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"references": [] | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
{ | ||
"path": "other" | ||
}, | ||
{ | ||
"path": "reexports" | ||
}, | ||
{ | ||
"path": "standard" | ||
} | ||
|
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
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
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
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