diff --git a/extension/.eslintrc.json b/.eslintrc.json similarity index 100% rename from extension/.eslintrc.json rename to .eslintrc.json diff --git a/.gitignore b/.gitignore index 84cc0ef..4f13061 100644 --- a/.gitignore +++ b/.gitignore @@ -63,4 +63,7 @@ typings/ # dotenv environment variables file .env -extension/preview.ts +.vscode-test/ +*.vsix +preview.ts +tslibs \ No newline at end of file diff --git a/extension/.vscode/extensions.json b/.vscode/extensions.json similarity index 100% rename from extension/.vscode/extensions.json rename to .vscode/extensions.json diff --git a/extension/.vscode/launch.json b/.vscode/launch.json similarity index 100% rename from extension/.vscode/launch.json rename to .vscode/launch.json diff --git a/extension/.vscode/settings.json b/.vscode/settings.json similarity index 100% rename from extension/.vscode/settings.json rename to .vscode/settings.json diff --git a/extension/.vscode/tasks.json b/.vscode/tasks.json similarity index 100% rename from extension/.vscode/tasks.json rename to .vscode/tasks.json diff --git a/extension/.vscodeignore b/.vscodeignore similarity index 100% rename from extension/.vscodeignore rename to .vscodeignore diff --git a/extension/CHANGELOG.md b/CHANGELOG.md similarity index 100% rename from extension/CHANGELOG.md rename to CHANGELOG.md diff --git a/extension/LICENSE b/LICENSE similarity index 100% rename from extension/LICENSE rename to LICENSE diff --git a/extension/README.md b/README.md similarity index 100% rename from extension/README.md rename to README.md diff --git a/extension/demo/demo1.gif b/demo/demo1.gif similarity index 100% rename from extension/demo/demo1.gif rename to demo/demo1.gif diff --git a/extension/demo/demo2.gif b/demo/demo2.gif similarity index 100% rename from extension/demo/demo2.gif rename to demo/demo2.gif diff --git a/extension/demo/demo3.gif b/demo/demo3.gif similarity index 100% rename from extension/demo/demo3.gif rename to demo/demo3.gif diff --git a/extension/.gitignore b/extension/.gitignore deleted file mode 100644 index e8e08a4..0000000 --- a/extension/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -out -dist -node_modules -.vscode-test/ -*.vsix -preview.ts -tslibs \ No newline at end of file diff --git a/extension/media/dark/github-markdown.css b/media/dark/github-markdown.css similarity index 100% rename from extension/media/dark/github-markdown.css rename to media/dark/github-markdown.css diff --git a/extension/media/dark/highlight-github.min.css b/media/dark/highlight-github.min.css similarity index 100% rename from extension/media/dark/highlight-github.min.css rename to media/dark/highlight-github.min.css diff --git a/extension/media/global.css b/media/global.css similarity index 100% rename from extension/media/global.css rename to media/global.css diff --git a/extension/media/highlight-tsc.min.js b/media/highlight-tsc.min.js similarity index 100% rename from extension/media/highlight-tsc.min.js rename to media/highlight-tsc.min.js diff --git a/extension/media/highlight.min.js b/media/highlight.min.js similarity index 100% rename from extension/media/highlight.min.js rename to media/highlight.min.js diff --git a/extension/media/infoicon.png b/media/infoicon.png similarity index 100% rename from extension/media/infoicon.png rename to media/infoicon.png diff --git a/extension/media/light/github-markdown.css b/media/light/github-markdown.css similarity index 100% rename from extension/media/light/github-markdown.css rename to media/light/github-markdown.css diff --git a/extension/media/light/highlight-github.min.css b/media/light/highlight-github.min.css similarity index 100% rename from extension/media/light/highlight-github.min.css rename to media/light/highlight-github.min.css diff --git a/extension/media/page.js b/media/page.js similarity index 100% rename from extension/media/page.js rename to media/page.js diff --git a/extension/media/reload.png b/media/reload.png similarity index 100% rename from extension/media/reload.png rename to media/reload.png diff --git a/extension/media/reload2.png b/media/reload2.png similarity index 100% rename from extension/media/reload2.png rename to media/reload2.png diff --git a/extension/media/test.html b/media/test.html similarity index 100% rename from extension/media/test.html rename to media/test.html diff --git a/extension/media/typedoclogo.png b/media/typedoclogo.png similarity index 100% rename from extension/media/typedoclogo.png rename to media/typedoclogo.png diff --git a/extension/package-lock.json b/package-lock.json similarity index 100% rename from extension/package-lock.json rename to package-lock.json diff --git a/extension/package.json b/package.json similarity index 100% rename from extension/package.json rename to package.json diff --git a/extension/patches/typedoc+0.24.8.patch b/patches/typedoc+0.24.8.patch similarity index 100% rename from extension/patches/typedoc+0.24.8.patch rename to patches/typedoc+0.24.8.patch diff --git a/extension/patches/typedoc-plugin-markdown+4.0.0-next.16.patch b/patches/typedoc-plugin-markdown+4.0.0-next.16.patch similarity index 100% rename from extension/patches/typedoc-plugin-markdown+4.0.0-next.16.patch rename to patches/typedoc-plugin-markdown+4.0.0-next.16.patch diff --git a/sampleapp/.vscode/settings.json b/sampleapp/.vscode/settings.json deleted file mode 100644 index 0d02f47..0000000 --- a/sampleapp/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "conf.resource.insertEmptyLastLine": { - "c:\\dev\\github\\psulek\\vscode-typedoc-livepreview\\sampleapp\\src\\tc001.ts": true - } -} \ No newline at end of file diff --git a/sampleapp/mds/.gitattributes b/sampleapp/mds/.gitattributes deleted file mode 100644 index 604c595..0000000 --- a/sampleapp/mds/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.md text eol=lf \ No newline at end of file diff --git a/sampleapp/mds/tc001/calculateMagic.md b/sampleapp/mds/tc001/calculateMagic.md deleted file mode 100644 index 356c407..0000000 --- a/sampleapp/mds/tc001/calculateMagic.md +++ /dev/null @@ -1,23 +0,0 @@ -# Function: calculateMagic() - -```ts -calculateMagic(input): Promise< number > -``` - -Calculates magic number from `input` string. - - - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `input` | `string` | magic string | - - -## Returns - -`Promise`\< `number` \> - -calculated magic special number value. \ No newline at end of file diff --git a/sampleapp/mds/tc002/class.md b/sampleapp/mds/tc002/class.md deleted file mode 100644 index da59913..0000000 --- a/sampleapp/mds/tc002/class.md +++ /dev/null @@ -1,7 +0,0 @@ -# Class: ConsoleLogger - -Console logger `implementation`. LogLevel. - -## See - -LogLevel \ No newline at end of file diff --git a/sampleapp/mds/tc002/ctor.md b/sampleapp/mds/tc002/ctor.md deleted file mode 100644 index 0961ed5..0000000 --- a/sampleapp/mds/tc002/ctor.md +++ /dev/null @@ -1,19 +0,0 @@ -# constructor() - -```ts -new ConsoleLogger(DEBUG): ConsoleLogger -``` - -Creates instance of ConsoleLogger class. - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `DEBUG` | `boolean` | debug flag whenever to log debug messages or not. | - - -## Returns - -`ConsoleLogger` \ No newline at end of file diff --git a/sampleapp/mds/tc002/dataProp.md b/sampleapp/mds/tc002/dataProp.md deleted file mode 100644 index 7c3baec..0000000 --- a/sampleapp/mds/tc002/dataProp.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: data - -Custom data dictionary. \ No newline at end of file diff --git a/sampleapp/mds/tc002/log.md b/sampleapp/mds/tc002/log.md deleted file mode 100644 index 150c51b..0000000 --- a/sampleapp/mds/tc002/log.md +++ /dev/null @@ -1,24 +0,0 @@ -# Method: log() - -```ts -log( - level, - message, - error?): void -``` - -Log message into console logger. - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `level` | `LogLevel` | level of logging message | -| `message` | `string` | content of log message | -| `error`? | `Error` | optional error (in case of logging catched exception) | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc003/class.md b/sampleapp/mds/tc003/class.md deleted file mode 100644 index 26b8276..0000000 --- a/sampleapp/mds/tc003/class.md +++ /dev/null @@ -1,3 +0,0 @@ -# Class: ABC - -ABC class `nice` \ No newline at end of file diff --git a/sampleapp/mds/tc003/run.md b/sampleapp/mds/tc003/run.md deleted file mode 100644 index ee52a11..0000000 --- a/sampleapp/mds/tc003/run.md +++ /dev/null @@ -1,15 +0,0 @@ -# Method: run() - -```ts -run(): number -``` - -Just run - - - -## Returns - -`number` - -123 number \ No newline at end of file diff --git a/sampleapp/mds/tc003/vara.md b/sampleapp/mds/tc003/vara.md deleted file mode 100644 index 89428a1..0000000 --- a/sampleapp/mds/tc003/vara.md +++ /dev/null @@ -1,3 +0,0 @@ -# Variable: a - -this is const A! \ No newline at end of file diff --git a/sampleapp/mds/tc004/class.md b/sampleapp/mds/tc004/class.md deleted file mode 100644 index 79a4e0a..0000000 --- a/sampleapp/mds/tc004/class.md +++ /dev/null @@ -1,3 +0,0 @@ -# Class: ConsoleLogger2 - -Console logger2 `implementation`. \ No newline at end of file diff --git a/sampleapp/mds/tc004/close.md b/sampleapp/mds/tc004/close.md deleted file mode 100644 index 742dbde..0000000 --- a/sampleapp/mds/tc004/close.md +++ /dev/null @@ -1,11 +0,0 @@ -# Method: close() - -```ts -close(): void -``` - -close it - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc004/run.md b/sampleapp/mds/tc004/run.md deleted file mode 100644 index ee52a11..0000000 --- a/sampleapp/mds/tc004/run.md +++ /dev/null @@ -1,15 +0,0 @@ -# Method: run() - -```ts -run(): number -``` - -Just run - - - -## Returns - -`number` - -123 number \ No newline at end of file diff --git a/sampleapp/mds/tc004/vara.md b/sampleapp/mds/tc004/vara.md deleted file mode 100644 index 89428a1..0000000 --- a/sampleapp/mds/tc004/vara.md +++ /dev/null @@ -1,3 +0,0 @@ -# Variable: a - -this is const A! \ No newline at end of file diff --git a/sampleapp/mds/tc005/DateFormat.md b/sampleapp/mds/tc005/DateFormat.md deleted file mode 100644 index 51819e0..0000000 --- a/sampleapp/mds/tc005/DateFormat.md +++ /dev/null @@ -1,3 +0,0 @@ -# Type alias: DateFormat - -Date format types. \ No newline at end of file diff --git a/sampleapp/mds/tc005/ILogger.md b/sampleapp/mds/tc005/ILogger.md deleted file mode 100644 index e30d9fe..0000000 --- a/sampleapp/mds/tc005/ILogger.md +++ /dev/null @@ -1,3 +0,0 @@ -# Type alias: ILogger - -Core logger interface \ No newline at end of file diff --git a/sampleapp/mds/tc005/ILogger_DEBUG.md b/sampleapp/mds/tc005/ILogger_DEBUG.md deleted file mode 100644 index 02b93e6..0000000 --- a/sampleapp/mds/tc005/ILogger_DEBUG.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: DEBUG - -Flag whenever hosting environment is in debug build (true) or not (false). \ No newline at end of file diff --git a/sampleapp/mds/tc005/ILogger_data.md b/sampleapp/mds/tc005/ILogger_data.md deleted file mode 100644 index d289bda..0000000 --- a/sampleapp/mds/tc005/ILogger_data.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: data - -Readonly data dictionary associated with logger. \ No newline at end of file diff --git a/sampleapp/mds/tc005/ILogger_log.md b/sampleapp/mds/tc005/ILogger_log.md deleted file mode 100644 index 1f4b0dc..0000000 --- a/sampleapp/mds/tc005/ILogger_log.md +++ /dev/null @@ -1,24 +0,0 @@ -# Property: log - -```ts -( - level, - message, - error?): void -``` - -Logs message and/or error at specified log level. - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `level` | `NonNullable`\< `LogLevel` \> | -| `message` | `string` | -| `error`? | `Error` | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc005/LogLevel.md b/sampleapp/mds/tc005/LogLevel.md deleted file mode 100644 index d1edba2..0000000 --- a/sampleapp/mds/tc005/LogLevel.md +++ /dev/null @@ -1,3 +0,0 @@ -# Type alias: LogLevel - -Levels for logging. \ No newline at end of file diff --git a/sampleapp/mds/tc005/LogMessageFunction.md b/sampleapp/mds/tc005/LogMessageFunction.md deleted file mode 100644 index f23b5b5..0000000 --- a/sampleapp/mds/tc005/LogMessageFunction.md +++ /dev/null @@ -1,20 +0,0 @@ -# Type alias: LogMessageFunction - -```ts -(message, error?): void -``` - -Log's message function type. - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `message` | `string` | message string to log | -| `error`? | `Error` | optional error object associated with log | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc005/PromiseType.md b/sampleapp/mds/tc005/PromiseType.md deleted file mode 100644 index 7b2e0a9..0000000 --- a/sampleapp/mds/tc005/PromiseType.md +++ /dev/null @@ -1,11 +0,0 @@ -# Type alias: PromiseType - -```ts -(): Promise< void > -``` - -Promise like type alias. - -## Returns - -`Promise`\< `void` \> \ No newline at end of file diff --git a/sampleapp/mds/tc005/TEnumCtor.md b/sampleapp/mds/tc005/TEnumCtor.md deleted file mode 100644 index 39488fb..0000000 --- a/sampleapp/mds/tc005/TEnumCtor.md +++ /dev/null @@ -1,10 +0,0 @@ -# Interface: TEnumConstructor`` - -interface marker for enums. - -## Type parameters - - -| Parameter | -| :------ | -| `TEnum` | \ No newline at end of file diff --git a/sampleapp/mds/tc006/DEBUG.md b/sampleapp/mds/tc006/DEBUG.md deleted file mode 100644 index 02b93e6..0000000 --- a/sampleapp/mds/tc006/DEBUG.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: DEBUG - -Flag whenever hosting environment is in debug build (true) or not (false). \ No newline at end of file diff --git a/sampleapp/mds/tc006/ILogger.md b/sampleapp/mds/tc006/ILogger.md deleted file mode 100644 index e30d9fe..0000000 --- a/sampleapp/mds/tc006/ILogger.md +++ /dev/null @@ -1,3 +0,0 @@ -# Type alias: ILogger - -Core logger interface \ No newline at end of file diff --git a/sampleapp/mds/tc006/log.md b/sampleapp/mds/tc006/log.md deleted file mode 100644 index b52e9bf..0000000 --- a/sampleapp/mds/tc006/log.md +++ /dev/null @@ -1,26 +0,0 @@ -# Property: log - -```ts -( - level, - message, - error?, - map?): void -``` - -Logs message and/or error at specified log level. - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `level` | `string` | log level | -| `message` | `string` | log message | -| `error`? | `Error` | log error (optional) | -| `map`? | `Map`\< `string`, `number` \> | this a map | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc007/class.md b/sampleapp/mds/tc007/class.md deleted file mode 100644 index 6a340ce..0000000 --- a/sampleapp/mds/tc007/class.md +++ /dev/null @@ -1,11 +0,0 @@ -# Class: ExpireMap`` - -Expiration map like class. - -## Type parameters - - -| Parameter | Description | -| :------ | :------ | -| `K` | key type in map. | -| `V` | value type in map. | \ No newline at end of file diff --git a/sampleapp/mds/tc007/ctor.md b/sampleapp/mds/tc007/ctor.md deleted file mode 100644 index 0bb36fb..0000000 --- a/sampleapp/mds/tc007/ctor.md +++ /dev/null @@ -1,20 +0,0 @@ -# constructor() - -```ts -new default(): default< K, V > -``` - -Creates new instance of default class. - -## Type parameters - - -| Parameter | -| :------ | -| `K` | -| `V` | - - -## Returns - -`default`\< `K`, `V` \> \ No newline at end of file diff --git a/sampleapp/mds/tc007/set.md b/sampleapp/mds/tc007/set.md deleted file mode 100644 index 8d55141..0000000 --- a/sampleapp/mds/tc007/set.md +++ /dev/null @@ -1,26 +0,0 @@ -# Method: set() - -```ts -set( - key, - value, - expireTimeout?): default< K, V > -``` - - - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `key` | `K` | key to set new item in map. | -| `value` | `V` | value to set new item in map. | -| `expireTimeout`? | `number` | expiration timeout (in ms) after which item from map will be removed on retrieval. | - - -## Returns - -`default`\< `K`, `V` \> - -ExpireMap same instance. \ No newline at end of file diff --git a/sampleapp/mds/tc008/copy1.md b/sampleapp/mds/tc008/copy1.md deleted file mode 100644 index 96dec46..0000000 --- a/sampleapp/mds/tc008/copy1.md +++ /dev/null @@ -1,24 +0,0 @@ -# Function: copy() - -```ts -copy( - src, - dest, - options?): Promise< void > -``` - -Copy a file or directory. The directory can have contents. - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `src` | `string` | Note that if `src` is a directory it will copy everything inside of this directory, not the entire directory itself (see [issue #537](https://github.com/jprichardson/node-fs-extra/issues/537)). | -| `dest` | `string` | Note that if `src` is a file, `dest` cannot be a directory (see [issue #323](https://github.com/jprichardson/node-fs-extra/issues/323)). | -| `options`? | `CopyOptions` | - | - - -## Returns - -`Promise`\< `void` \> \ No newline at end of file diff --git a/sampleapp/mds/tc008/copy2.md b/sampleapp/mds/tc008/copy2.md deleted file mode 100644 index b99866a..0000000 --- a/sampleapp/mds/tc008/copy2.md +++ /dev/null @@ -1,24 +0,0 @@ -# Function: copy() - -```ts -copy( - src, - dest, - callback?): void -``` - -copy 2 - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `src` | `string` | param `src` 2 | -| `dest` | `string` | param `dest` 2 | -| `callback`? | `NoParamCallbackWithUndefined` | param `callback` 2 | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc008/copy3.md b/sampleapp/mds/tc008/copy3.md deleted file mode 100644 index d8ebf6f..0000000 --- a/sampleapp/mds/tc008/copy3.md +++ /dev/null @@ -1,26 +0,0 @@ -# Function: copy() - -```ts -copy( - src, - dest, - options, - callback): void -``` - -copy 3 - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `src` | `string` | param `src` 3 | -| `dest` | `string` | param `dest` 3 | -| `options` | `CopyOptions` | param `options` 3 | -| `callback` | `NoParamCallbackWithUndefined` | param `callback` 3 | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc009.d/pathExists1.md b/sampleapp/mds/tc009.d/pathExists1.md deleted file mode 100644 index b6a84db..0000000 --- a/sampleapp/mds/tc009.d/pathExists1.md +++ /dev/null @@ -1,48 +0,0 @@ -# Function: pathExists() - -```ts -pathExists(path): Promise< boolean > -``` - -Test whether or not the given path exists by checking with the file system. Like -[`fs.exists`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback), but with a normal -callback signature (err, exists). Uses `fs.access` under the hood. - -## Example - -```ts -import * as fs from 'fs-extra' - -const file = '/tmp/this/path/does/not/exist/file.txt' - -// With a callback: -fs.pathExists(file, (err, exists) => { - console.log(err) // => null - console.log(exists) // => false -}) - -// Promise usage: -fs.pathExists(file) - .then(exists => console.log(exists)) // => false - -// With async/await: -async function asyncAwait () { - const exists = await fs.pathExists(file) - - console.log(exists) // => false -} - -asyncAwait() -``` - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `path` | `string` | - - -## Returns - -`Promise`\< `boolean` \> \ No newline at end of file diff --git a/sampleapp/mds/tc009.d/pathExists2.md b/sampleapp/mds/tc009.d/pathExists2.md deleted file mode 100644 index 7e4a16e..0000000 --- a/sampleapp/mds/tc009.d/pathExists2.md +++ /dev/null @@ -1,18 +0,0 @@ -# Function: pathExists() - -```ts -pathExists(path, callback): void -``` - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `path` | `string` | -| `callback` | (`err`, `exists`) => `void` | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc009.d/pathExistsSync.md b/sampleapp/mds/tc009.d/pathExistsSync.md deleted file mode 100644 index d9bba15..0000000 --- a/sampleapp/mds/tc009.d/pathExistsSync.md +++ /dev/null @@ -1,20 +0,0 @@ -# Function: pathExistsSync() - -```ts -pathExistsSync(path): boolean -``` - -An alias for [`fs.existsSync`](https://nodejs.org/api/fs.html#fs_fs_existssync_path), created for -consistency with `pathExists`. - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `path` | `string` | - - -## Returns - -`boolean` \ No newline at end of file diff --git a/sampleapp/mds/tc010/typeAlias.md b/sampleapp/mds/tc010/typeAlias.md deleted file mode 100644 index e7aaad0..0000000 --- a/sampleapp/mds/tc010/typeAlias.md +++ /dev/null @@ -1,3 +0,0 @@ -# Type alias: TypeNumberOrString - -The type of number or string. \ No newline at end of file diff --git a/sampleapp/mds/tc010/typeExtends.md b/sampleapp/mds/tc010/typeExtends.md deleted file mode 100644 index a908d5b..0000000 --- a/sampleapp/mds/tc010/typeExtends.md +++ /dev/null @@ -1,11 +0,0 @@ -# Interface: CustomType`` - -Context provided to a class decorator. - -## Type parameters - - -| Parameter | Description | -| :------ | :------ | -| `T` *extends* `number` | The type of the decorated class associated with this context is super awesome. | -| `U` | this is U ;-) | \ No newline at end of file diff --git a/sampleapp/mds/tc010/typePropKind.md b/sampleapp/mds/tc010/typePropKind.md deleted file mode 100644 index 0aff1ea..0000000 --- a/sampleapp/mds/tc010/typePropKind.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: kind - -The kind of element that was decorated. \ No newline at end of file diff --git a/sampleapp/mds/tc011/access.md b/sampleapp/mds/tc011/access.md deleted file mode 100644 index afb7c75..0000000 --- a/sampleapp/mds/tc011/access.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: access - -An object that can be used to access the current value of the class element at runtime. \ No newline at end of file diff --git a/sampleapp/mds/tc011/accessGet.md b/sampleapp/mds/tc011/accessGet.md deleted file mode 100644 index beb6822..0000000 --- a/sampleapp/mds/tc011/accessGet.md +++ /dev/null @@ -1,25 +0,0 @@ -# Method: get() - -```ts -get(object): Value -``` - -Gets the current value of the method from the provided object. - -## Example - -```ts -let fn = context.access.get(instance); -``` - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `object` | `This` | - - -## Returns - -`Value` \ No newline at end of file diff --git a/sampleapp/mds/tc011/accessHas.md b/sampleapp/mds/tc011/accessHas.md deleted file mode 100644 index 821dba9..0000000 --- a/sampleapp/mds/tc011/accessHas.md +++ /dev/null @@ -1,19 +0,0 @@ -# Method: has() - -```ts -has(object): boolean -``` - -Determines whether an object has a property with the same name as the decorated element. - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `object` | `This` | - - -## Returns - -`boolean` \ No newline at end of file diff --git a/sampleapp/mds/tc012/animal.md b/sampleapp/mds/tc012/animal.md deleted file mode 100644 index e69de29..0000000 diff --git a/sampleapp/mds/tc012/dog.md b/sampleapp/mds/tc012/dog.md deleted file mode 100644 index 45d355f..0000000 --- a/sampleapp/mds/tc012/dog.md +++ /dev/null @@ -1,3 +0,0 @@ -# Interface: Dog - -Dog interface \ No newline at end of file diff --git a/sampleapp/mds/tc012/name.md b/sampleapp/mds/tc012/name.md deleted file mode 100644 index 2574a0a..0000000 --- a/sampleapp/mds/tc012/name.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: name - -Name of animal \ No newline at end of file diff --git a/sampleapp/mds/tc012/size.md b/sampleapp/mds/tc012/size.md deleted file mode 100644 index 425110e..0000000 --- a/sampleapp/mds/tc012/size.md +++ /dev/null @@ -1,3 +0,0 @@ -# Property: size - -Size of dog \ No newline at end of file diff --git a/sampleapp/mds/tc013.d/MyEventTarget.md b/sampleapp/mds/tc013.d/MyEventTarget.md deleted file mode 100644 index 45c9735..0000000 --- a/sampleapp/mds/tc013.d/MyEventTarget.md +++ /dev/null @@ -1,3 +0,0 @@ -# Interface: MyEventTarget - -MyEventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. \ No newline at end of file diff --git a/sampleapp/mds/tc013.d/addEventListener.md b/sampleapp/mds/tc013.d/addEventListener.md deleted file mode 100644 index ca58db8..0000000 --- a/sampleapp/mds/tc013.d/addEventListener.md +++ /dev/null @@ -1,24 +0,0 @@ -# Method: addEventListener() - -```ts -addEventListener( - type, - callback, - options?): void -``` - -addEventListener doc - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `type` | `string` | | -| `callback` | `null` \| `EventListenerOrEventListenerObject` | | -| `options`? | `boolean` \| `AddEventListenerOptions` | | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc013.d/dispatchEvent.md b/sampleapp/mds/tc013.d/dispatchEvent.md deleted file mode 100644 index c8a7dae..0000000 --- a/sampleapp/mds/tc013.d/dispatchEvent.md +++ /dev/null @@ -1,19 +0,0 @@ -# Method: dispatchEvent() - -```ts -dispatchEvent(event): boolean -``` - -Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `event` | `Event` | - - -## Returns - -`boolean` \ No newline at end of file diff --git a/sampleapp/mds/tc013.d/removeEventListener.md b/sampleapp/mds/tc013.d/removeEventListener.md deleted file mode 100644 index 53c0c4c..0000000 --- a/sampleapp/mds/tc013.d/removeEventListener.md +++ /dev/null @@ -1,24 +0,0 @@ -# Method: removeEventListener() - -```ts -removeEventListener( - type, - callback, - options?): void -``` - -Removes the event listener in target's event listener list with the same type, callback, and options. - -## Parameters - - -| Parameter | Type | -| :------ | :------ | -| `type` | `string` | -| `callback` | `null` \| `EventListenerOrEventListenerObject` | -| `options`? | `boolean` \| `EventListenerOptions` | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc014/class.md b/sampleapp/mds/tc014/class.md deleted file mode 100644 index da59913..0000000 --- a/sampleapp/mds/tc014/class.md +++ /dev/null @@ -1,7 +0,0 @@ -# Class: ConsoleLogger - -Console logger `implementation`. LogLevel. - -## See - -LogLevel \ No newline at end of file diff --git a/sampleapp/mds/tc014/log.md b/sampleapp/mds/tc014/log.md deleted file mode 100644 index 150c51b..0000000 --- a/sampleapp/mds/tc014/log.md +++ /dev/null @@ -1,24 +0,0 @@ -# Method: log() - -```ts -log( - level, - message, - error?): void -``` - -Log message into console logger. - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `level` | `LogLevel` | level of logging message | -| `message` | `string` | content of log message | -| `error`? | `Error` | optional error (in case of logging catched exception) | - - -## Returns - -`void` \ No newline at end of file diff --git a/sampleapp/mds/tc015.d/interface.md b/sampleapp/mds/tc015.d/interface.md deleted file mode 100644 index 410e3bd..0000000 --- a/sampleapp/mds/tc015.d/interface.md +++ /dev/null @@ -1,7 +0,0 @@ -# Interface: IDummy - -This is the dummiest interface. - -## See - -Map\ \ No newline at end of file diff --git a/sampleapp/mds/tc015.d/namespace.md b/sampleapp/mds/tc015.d/namespace.md deleted file mode 100644 index a714d78..0000000 --- a/sampleapp/mds/tc015.d/namespace.md +++ /dev/null @@ -1,3 +0,0 @@ -# Namespace: "dummy" - -Dummy Type Definition \ No newline at end of file diff --git a/sampleapp/mds/tc015.d/save.md b/sampleapp/mds/tc015.d/save.md deleted file mode 100644 index 46fc097..0000000 --- a/sampleapp/mds/tc015.d/save.md +++ /dev/null @@ -1,23 +0,0 @@ -# Method: save() - -```ts -save(file): Promise< boolean > -``` - -Save dummy into file. - - - -## Parameters - - -| Parameter | Type | Description | -| :------ | :------ | :------ | -| `file` | `string` | file name where to save dummy | - - -## Returns - -`Promise`\< `boolean` \> - -a boolean flag whenever saving file was successful (`true`) or not (`false`) \ No newline at end of file diff --git a/sampleapp/mds/tc015.d/version.md b/sampleapp/mds/tc015.d/version.md deleted file mode 100644 index ca657b1..0000000 --- a/sampleapp/mds/tc015.d/version.md +++ /dev/null @@ -1,3 +0,0 @@ -# Variable: version - -The version of dummy. \ No newline at end of file diff --git a/sampleapp/package-lock.json b/sampleapp/package-lock.json deleted file mode 100644 index 5604cfc..0000000 --- a/sampleapp/package-lock.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "sampleapp", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "sampleapp", - "version": "1.0.0", - "license": "ISC", - "devDependencies": { - "@types/node": "^20.3.3", - "typescript": "^5.1.3" - } - }, - "node_modules/@types/node": { - "version": "20.3.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.3.tgz", - "integrity": "sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw==", - "dev": true - }, - "node_modules/typescript": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", - "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - } - } -} diff --git a/sampleapp/package.json b/sampleapp/package.json deleted file mode 100644 index 1c737c6..0000000 --- a/sampleapp/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "sampleapp", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "devDependencies": { - "@types/node": "^20.3.3", - "typescript": "^5.1.3" - } -} diff --git a/sampleapp/src/tc001.ts b/sampleapp/src/tc001.ts deleted file mode 100644 index 3679d7c..0000000 --- a/sampleapp/src/tc001.ts +++ /dev/null @@ -1,18 +0,0 @@ -// testcase: calculateMagic|5-12 - -const a = 123; - -/** - * Calculates magic number from `input` string. - * @param input - magic string - * @returns calculated magic special number value. - */ -function calculateMagic(input: string): Promise { - return Promise.resolve(123); -} - -const b = '123'; - -function isEmpty(val: string): boolean { - return true; -} \ No newline at end of file diff --git a/sampleapp/src/tc002.ts b/sampleapp/src/tc002.ts deleted file mode 100644 index 7a99ae4..0000000 --- a/sampleapp/src/tc002.ts +++ /dev/null @@ -1,64 +0,0 @@ -// testcase: class|8-11 -// testcase: ctor|12-18 -// testcase: dataProp|20-23 -// testcase: log|25-47 - -//import { ILogger, LogLevel } from './tc005'; - -/** - * Console logger `implementation`. {@link LogLevel}. @see LogLevel - */ -export class ConsoleLogger implements ILogger { - /** - * Creates instance of {@link ConsoleLogger} class. - * @param DEBUG - debug flag whenever to log debug messages or not. - */ - constructor(public DEBUG: boolean) { - this.data = {}; - } - - /** - * Custom data dictionary. - */ - public data: Record; - - /** - * Log message into console logger. - * @param level - level of logging message - * @param message - content of log message - * @param error - optional error (in case of logging catched exception) - */ - public log(level: LogLevel, message: string, error?: Error | undefined): void { - switch (level) { - case 'debug': - case 'info': { - console.log(message, error); - break; - } - case 'warn': { - console.warn(message, error); - break; - } - case 'error': { - console.error(message, error); - break; - } - } - } - - public logDebug(message: string, error?: Error | undefined): void { - console.log(message, error); - } - - public logInfo(message: string, error?: Error | undefined): void { - console.log(message, error); - } - - public logWarn(message: string, error?: Error | undefined): void { - console.warn(message, error); - } - - public logError(message: string, error?: Error | undefined): void { - console.error(message, error); - } -} diff --git a/sampleapp/src/tc003.ts b/sampleapp/src/tc003.ts deleted file mode 100644 index 453fd23..0000000 --- a/sampleapp/src/tc003.ts +++ /dev/null @@ -1,21 +0,0 @@ -// testcase: class|5-8 -// testcase: run|9-15 -// testcase: vara|18-19 - -/** - * ABC class `nice` - */ -export class ABC { - /** - * Just run - * @returns 123 number - */ - public run(): number { - return 123; - } -} - -/** this is const A! */ -const a = 123; - -console.log(a); \ No newline at end of file diff --git a/sampleapp/src/tc004.ts b/sampleapp/src/tc004.ts deleted file mode 100644 index 7f51a2e..0000000 --- a/sampleapp/src/tc004.ts +++ /dev/null @@ -1,31 +0,0 @@ -// testcase: class|8-11 -// testcase: run|13-19 -// testcase: close|21-26 -// testcase: vara|29-30 - -import { IDummy } from './tc005'; - -/** - * Console logger2 `implementation`. - */ -class ConsoleLogger2 implements IDummy { - - /** - * Just run - * @returns 123 number - */ - public run(): number { - return 123; - } - - /** - * close it - */ - public close(): void { - // close something - } -} - -/** this is const A! */ -const a = 123; -console.log(a); \ No newline at end of file diff --git a/sampleapp/src/tc005.ts b/sampleapp/src/tc005.ts deleted file mode 100644 index d490cab..0000000 --- a/sampleapp/src/tc005.ts +++ /dev/null @@ -1,67 +0,0 @@ -// testcase: PromiseType|11-14 -// testcase: DateFormat|16-20 -// testcase: LogLevel|22-26 -// testcase: LogMessageFunction|28-33 -// testcase: ILogger|35-38 -// testcase: ILogger_DEBUG|39-42 -// testcase: ILogger_data|44-47 -// testcase: ILogger_log|49-52 -// testcase: TEnumCtor|63-66 - -/** - * Promise like type alias. - */ -export type PromiseType = () => Promise; - -/** - * Date format types. - * - */ -export type DateFormat = 'date' | 'time' | 'dateTime' | 'iso' | 'fileTimestamp'; - -/** - * Levels for logging. - * - */ -export type LogLevel = 'debug' | 'info' | 'warn' | 'error'; - -/** - * Log's message function type. - * @param message - message string to log - * @param error - optional error object associated with log - */ -export type LogMessageFunction = (message: string, error?: Error) => void; - -/** - * Core logger interface - */ -export type ILogger = { - /** - * Flag whenever hosting environment is in debug build (true) or not (false). - */ - readonly DEBUG: boolean; - - /** - * Readonly data dictionary associated with logger. - */ - readonly data: Record; - - /** - * Logs message and/or error at specified log level. - */ - log: (level: NonNullable, message: string, error?: Error) => void; - - logDebug: LogMessageFunction; - - logInfo: LogMessageFunction; - - logWarn: LogMessageFunction; - - logError: LogMessageFunction; -}; - -/** - * interface marker for enums. - */ -export interface TEnumConstructor extends Object { -} \ No newline at end of file diff --git a/sampleapp/src/tc006.ts b/sampleapp/src/tc006.ts deleted file mode 100644 index 4717650..0000000 --- a/sampleapp/src/tc006.ts +++ /dev/null @@ -1,24 +0,0 @@ -// testcase: ILogger|5-8 -// testcase: DEBUG|9-12 -// testcase: log|14-20 - -/** - * Core logger interface - */ -export type ILogger = { - /** - * Flag whenever hosting environment is in debug build (true) or not (false). - */ - readonly DEBUG: boolean; - - /** - * Logs message and/or error at specified log level. - * @param level - log level - * @param message - log message - * @param error - log error (optional) - * @param map - this a map - */ - log: (level: string, message: string, error?: Error, map?: Map) => void; - - logDebug: () => void; -}; \ No newline at end of file diff --git a/sampleapp/src/tc007.ts b/sampleapp/src/tc007.ts deleted file mode 100644 index 4b8e0d4..0000000 --- a/sampleapp/src/tc007.ts +++ /dev/null @@ -1,27 +0,0 @@ -// testcase: class|5-10 -// testcase: ctor|11-15 -// testcase: set|17-26 - -/** - * Expiration map like class. - * @typeParam K - key type in map. - * @typeParam V - value type in map. - */ -export default class ExpireMap { - /** - * Creates new instance of {@link ExpireMap} class. - */ - constructor() { - } - - /** - * - * @param key - key to set new item in map. - * @param value - value to set new item in map. - * @param expireTimeout - expiration timeout (in ms) after which item from map will be removed on retrieval. - * @returns {@link ExpireMap} same instance. - */ - public set(key: K, value: V, expireTimeout?: number): this { - return this; - } -} \ No newline at end of file diff --git a/sampleapp/src/tc008.ts b/sampleapp/src/tc008.ts deleted file mode 100644 index 91594b8..0000000 --- a/sampleapp/src/tc008.ts +++ /dev/null @@ -1,34 +0,0 @@ -// testcase: copy1|9-17 -// testcase: copy2|19-25 -// testcase: copy3|27-34 - -type NoParamCallbackWithUndefined = (err: Error | null | undefined) => void; -type CopyOptions = {}; - - -/** - * Copy a file or directory. The directory can have contents. - * - * @param src - Note that if `src` is a directory it will copy everything inside of this directory, - * not the entire directory itself (see [issue #537](https://github.com/jprichardson/node-fs-extra/issues/537)). - * @param dest - Note that if `src` is a file, `dest` cannot be a directory - * (see [issue #323](https://github.com/jprichardson/node-fs-extra/issues/323)). - */ -declare function copy(src: string, dest: string, options?: CopyOptions): Promise; - -/** - * copy 2 - * @param src - param `src` 2 - * @param dest - param `dest` 2 - * @param callback - param `callback` 2 - */ -declare function copy(src: string, dest: string, callback?: NoParamCallbackWithUndefined): void; - -/** - * copy 3 - * @param src - param `src` 3 - * @param dest - param `dest` 3 - * @param options - param `options` 3 - * @param callback - param `callback` 3 - */ -declare function copy(src: string, dest: string, options: CopyOptions, callback: NoParamCallbackWithUndefined): void; diff --git a/sampleapp/src/tc009.d.ts b/sampleapp/src/tc009.d.ts deleted file mode 100644 index f7d0d92..0000000 --- a/sampleapp/src/tc009.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -// testcase: pathExists1|12-41 -// testcase: pathExists2|42-42 -// testcase: pathExistsSync|43-47 - -/// - -import * as fs from 'fs'; - -export * from 'fs'; - - -/** - * Test whether or not the given path exists by checking with the file system. Like - * [`fs.exists`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback), but with a normal - * callback signature (err, exists). Uses `fs.access` under the hood. - * - * @example - * import * as fs from 'fs-extra' - * - * const file = '/tmp/this/path/does/not/exist/file.txt' - * - * // With a callback: - * fs.pathExists(file, (err, exists) => { - * console.log(err) // => null - * console.log(exists) // => false - * }) - * - * // Promise usage: - * fs.pathExists(file) - * .then(exists => console.log(exists)) // => false - * - * // With async/await: - * async function asyncAwait () { - * const exists = await fs.pathExists(file) - * - * console.log(exists) // => false - * } - * - * asyncAwait() - */ -export function pathExists(path: string): Promise; -export function pathExists(path: string, callback: (err: NodeJS.ErrnoException | null, exists: boolean) => void): void; -/** - * An alias for [`fs.existsSync`](https://nodejs.org/api/fs.html#fs_fs_existssync_path), created for - * consistency with `pathExists`. - */ -export function pathExistsSync(path: string): boolean; - -export const access: typeof fs.access.__promisify__ & typeof fs.access; -export const appendFile: typeof fs.appendFile.__promisify__ & typeof fs.appendFile; \ No newline at end of file diff --git a/sampleapp/src/tc010.ts b/sampleapp/src/tc010.ts deleted file mode 100644 index 7f8f225..0000000 --- a/sampleapp/src/tc010.ts +++ /dev/null @@ -1,28 +0,0 @@ -// testcase: typeAlias|5-11 -// testcase: typeExtends|14-22 -// testcase: typePropKind|24-25 - -/** - * The type of number or string. - */ -type TypeNumberOrString = - |number - |string - ; -const a= 132; - -/** - * Context provided to a class decorator. - * @template T The type of the decorated class associated with this context - * is super awesome. - * @template U this is U ;-) - */ -interface CustomType< - T extends number, - U -> { - /** The kind of element that was decorated. */ - readonly kind: "class" - - readonly value: T; -} \ No newline at end of file diff --git a/sampleapp/src/tc011.ts b/sampleapp/src/tc011.ts deleted file mode 100644 index 8618ade..0000000 --- a/sampleapp/src/tc011.ts +++ /dev/null @@ -1,24 +0,0 @@ -// testcase: access|10-11 -// testcase: accessHas|12-15 -// testcase: accessGet|16-22 - - -interface IntA< - This = unknown, - Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, -> { - /** An object that can be used to access the current value of the class element at runtime. */ - readonly access: { - /** - * Determines whether an object has a property with the same name as the decorated element. - */ - has(object: This): boolean; - /** - * Gets the current value of the method from the provided object. - * - * @example - * let fn = context.access.get(instance); - */ - get(object: This): Value; - }; -} \ No newline at end of file diff --git a/sampleapp/src/tc012.ts b/sampleapp/src/tc012.ts deleted file mode 100644 index cc1345f..0000000 --- a/sampleapp/src/tc012.ts +++ /dev/null @@ -1,25 +0,0 @@ -// testcase: animal|4-7 -// testcase: name|11-14 -// testcase: dog|17-20 -// testcase: size|21-24 - - -/** - * Animal interface - */ -interface Animal { - /** - * Name of animal - */ - readonly name: string; -} - -/** - * Dog interface - */ -interface Dog extends Animal { - /** - * Size of dog - */ - readonly size: number; -} \ No newline at end of file diff --git a/sampleapp/src/tc013.d.ts b/sampleapp/src/tc013.d.ts deleted file mode 100644 index cc8a95f..0000000 --- a/sampleapp/src/tc013.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -// testcase: MyEventTarget|11-14 -// testcase: addEventListener|15-21 -// testcase: dispatchEvent|22-25 -// testcase: removeEventListener|26-29 - - -interface MyEventTargetReadonly { - readonlyFunc(): void; -} - -/** - * MyEventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. - */ -interface MyEventTarget extends MyEventTargetReadonly { - /** - * addEventListener doc - * @param type - * @param callback - * @param options - */ - addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; - /** - * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. - */ - dispatchEvent(event: Event): boolean; - /** - * Removes the event listener in target's event listener list with the same type, callback, and options. - */ - removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; -} - -declare var MyEventTarget: { - prototype: MyEventTarget; - fromFloat32Array(array32: Float32Array): MyEventTarget; - new(): MyEventTarget; -}; - -declare var MyEventTargetReadonly: { - prototype: MyEventTargetReadonly; - fromFloat32Array(array32: Float32Array): MyEventTargetReadonly; - new(): MyEventTargetReadonly; -}; - - -type MyEventTargetExtra = MyEventTarget; -declare var MyEventTargetExtra: typeof MyEventTarget; diff --git a/sampleapp/src/tc014.ts b/sampleapp/src/tc014.ts deleted file mode 100644 index 9c303e3..0000000 --- a/sampleapp/src/tc014.ts +++ /dev/null @@ -1,32 +0,0 @@ -// testcase: class|5-8 -// testcase: log|9-31 - - -/** - * Console logger `implementation`. {@link LogLevel}. @see LogLevel - */ -export class ConsoleLogger implements ILogger { - /** - * Log message into console logger. - * @param level - level of logging message - * @param message - content of log message - * @param error - optional error (in case of logging catched exception) - */ - public log(level: LogLevel, message: string, error?: Error | undefined): void { - switch (level) { - case 'debug': - case 'info': { - console.log(message, error); - break; - } - case 'warn': { - console.warn(message, error); - break; - } - case 'error': { - console.error(message, error); - break; - } - } - } -} \ No newline at end of file diff --git a/sampleapp/src/tc015.d.ts b/sampleapp/src/tc015.d.ts deleted file mode 100644 index a041e73..0000000 --- a/sampleapp/src/tc015.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -// testcase: namespace|7-10 -// testcase: version|11-14 -// testcase: interface|16-20 -// testcase: save|21-26 - - -/** - * Dummy Type Definition - */ -declare module 'dummy' { - /** - * The version of dummy. - */ - export const version: string; - - /** - * This is the dummiest interface. - * @see {@link Map} - */ - export interface IDummy { - /** - * Save dummy into file. - * @param file file name where to save dummy - * @returns a boolean flag whenever saving file was successful (`true`) or not (`false`) - */ - save(file: string): Promise; - } -} \ No newline at end of file diff --git a/sampleapp/tsconfig.json0 b/sampleapp/tsconfig.json0 deleted file mode 100644 index 216fc48..0000000 --- a/sampleapp/tsconfig.json0 +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "ES2020", - "outDir": "out", - "sourceMap": true, - "rootDir": "src", - "strict": true /* enable all strict type-checking options */ - /* Additional Checks */ - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - // "noUnusedParameters": true, /* Report errors on unused parameters. */ - } -} diff --git a/extension/src/command.ts b/src/command.ts similarity index 100% rename from extension/src/command.ts rename to src/command.ts diff --git a/extension/src/context.ts b/src/context.ts similarity index 100% rename from extension/src/context.ts rename to src/context.ts diff --git a/extension/src/converter.spec.ts b/src/converter.spec.ts similarity index 100% rename from extension/src/converter.spec.ts rename to src/converter.spec.ts diff --git a/extension/src/converter.ts b/src/converter.ts similarity index 100% rename from extension/src/converter.ts rename to src/converter.ts diff --git a/extension/src/extension.ts b/src/extension.ts similarity index 100% rename from extension/src/extension.ts rename to src/extension.ts diff --git a/extension/src/test/runTest.ts b/src/test/runTest.ts similarity index 100% rename from extension/src/test/runTest.ts rename to src/test/runTest.ts diff --git a/extension/src/test/suite/extension.test.ts b/src/test/suite/extension.test.ts similarity index 100% rename from extension/src/test/suite/extension.test.ts rename to src/test/suite/extension.test.ts diff --git a/extension/src/test/suite/index.ts b/src/test/suite/index.ts similarity index 100% rename from extension/src/test/suite/index.ts rename to src/test/suite/index.ts diff --git a/extension/src/types.ts b/src/types.ts similarity index 100% rename from extension/src/types.ts rename to src/types.ts diff --git a/extension/src/utils.ts b/src/utils.ts similarity index 100% rename from extension/src/utils.ts rename to src/utils.ts diff --git a/extension/test-data/mds/.gitattributes b/test-data/mds/.gitattributes similarity index 100% rename from extension/test-data/mds/.gitattributes rename to test-data/mds/.gitattributes diff --git a/extension/test-data/mds/tc001/calculateMagic.md b/test-data/mds/tc001/calculateMagic.md similarity index 100% rename from extension/test-data/mds/tc001/calculateMagic.md rename to test-data/mds/tc001/calculateMagic.md diff --git a/extension/test-data/mds/tc002/class.md b/test-data/mds/tc002/class.md similarity index 100% rename from extension/test-data/mds/tc002/class.md rename to test-data/mds/tc002/class.md diff --git a/extension/test-data/mds/tc002/ctor.md b/test-data/mds/tc002/ctor.md similarity index 100% rename from extension/test-data/mds/tc002/ctor.md rename to test-data/mds/tc002/ctor.md diff --git a/extension/test-data/mds/tc002/dataProp.md b/test-data/mds/tc002/dataProp.md similarity index 100% rename from extension/test-data/mds/tc002/dataProp.md rename to test-data/mds/tc002/dataProp.md diff --git a/extension/test-data/mds/tc002/log.md b/test-data/mds/tc002/log.md similarity index 100% rename from extension/test-data/mds/tc002/log.md rename to test-data/mds/tc002/log.md diff --git a/extension/test-data/mds/tc003/class.md b/test-data/mds/tc003/class.md similarity index 100% rename from extension/test-data/mds/tc003/class.md rename to test-data/mds/tc003/class.md diff --git a/extension/test-data/mds/tc003/run.md b/test-data/mds/tc003/run.md similarity index 100% rename from extension/test-data/mds/tc003/run.md rename to test-data/mds/tc003/run.md diff --git a/extension/test-data/mds/tc003/vara.md b/test-data/mds/tc003/vara.md similarity index 100% rename from extension/test-data/mds/tc003/vara.md rename to test-data/mds/tc003/vara.md diff --git a/extension/test-data/mds/tc004/class.md b/test-data/mds/tc004/class.md similarity index 100% rename from extension/test-data/mds/tc004/class.md rename to test-data/mds/tc004/class.md diff --git a/extension/test-data/mds/tc004/close.md b/test-data/mds/tc004/close.md similarity index 100% rename from extension/test-data/mds/tc004/close.md rename to test-data/mds/tc004/close.md diff --git a/extension/test-data/mds/tc004/run.md b/test-data/mds/tc004/run.md similarity index 100% rename from extension/test-data/mds/tc004/run.md rename to test-data/mds/tc004/run.md diff --git a/extension/test-data/mds/tc004/vara.md b/test-data/mds/tc004/vara.md similarity index 100% rename from extension/test-data/mds/tc004/vara.md rename to test-data/mds/tc004/vara.md diff --git a/extension/test-data/mds/tc005/DateFormat.md b/test-data/mds/tc005/DateFormat.md similarity index 100% rename from extension/test-data/mds/tc005/DateFormat.md rename to test-data/mds/tc005/DateFormat.md diff --git a/extension/test-data/mds/tc005/ILogger.md b/test-data/mds/tc005/ILogger.md similarity index 100% rename from extension/test-data/mds/tc005/ILogger.md rename to test-data/mds/tc005/ILogger.md diff --git a/extension/test-data/mds/tc005/ILogger_DEBUG.md b/test-data/mds/tc005/ILogger_DEBUG.md similarity index 100% rename from extension/test-data/mds/tc005/ILogger_DEBUG.md rename to test-data/mds/tc005/ILogger_DEBUG.md diff --git a/extension/test-data/mds/tc005/ILogger_data.md b/test-data/mds/tc005/ILogger_data.md similarity index 100% rename from extension/test-data/mds/tc005/ILogger_data.md rename to test-data/mds/tc005/ILogger_data.md diff --git a/extension/test-data/mds/tc005/ILogger_log.md b/test-data/mds/tc005/ILogger_log.md similarity index 100% rename from extension/test-data/mds/tc005/ILogger_log.md rename to test-data/mds/tc005/ILogger_log.md diff --git a/extension/test-data/mds/tc005/LogLevel.md b/test-data/mds/tc005/LogLevel.md similarity index 100% rename from extension/test-data/mds/tc005/LogLevel.md rename to test-data/mds/tc005/LogLevel.md diff --git a/extension/test-data/mds/tc005/LogMessageFunction.md b/test-data/mds/tc005/LogMessageFunction.md similarity index 100% rename from extension/test-data/mds/tc005/LogMessageFunction.md rename to test-data/mds/tc005/LogMessageFunction.md diff --git a/extension/test-data/mds/tc005/PromiseType.md b/test-data/mds/tc005/PromiseType.md similarity index 100% rename from extension/test-data/mds/tc005/PromiseType.md rename to test-data/mds/tc005/PromiseType.md diff --git a/extension/test-data/mds/tc005/TEnumCtor.md b/test-data/mds/tc005/TEnumCtor.md similarity index 100% rename from extension/test-data/mds/tc005/TEnumCtor.md rename to test-data/mds/tc005/TEnumCtor.md diff --git a/extension/test-data/mds/tc006/DEBUG.md b/test-data/mds/tc006/DEBUG.md similarity index 100% rename from extension/test-data/mds/tc006/DEBUG.md rename to test-data/mds/tc006/DEBUG.md diff --git a/extension/test-data/mds/tc006/ILogger.md b/test-data/mds/tc006/ILogger.md similarity index 100% rename from extension/test-data/mds/tc006/ILogger.md rename to test-data/mds/tc006/ILogger.md diff --git a/extension/test-data/mds/tc006/log.md b/test-data/mds/tc006/log.md similarity index 100% rename from extension/test-data/mds/tc006/log.md rename to test-data/mds/tc006/log.md diff --git a/extension/test-data/mds/tc007/class.md b/test-data/mds/tc007/class.md similarity index 100% rename from extension/test-data/mds/tc007/class.md rename to test-data/mds/tc007/class.md diff --git a/extension/test-data/mds/tc007/ctor.md b/test-data/mds/tc007/ctor.md similarity index 100% rename from extension/test-data/mds/tc007/ctor.md rename to test-data/mds/tc007/ctor.md diff --git a/extension/test-data/mds/tc007/set.md b/test-data/mds/tc007/set.md similarity index 100% rename from extension/test-data/mds/tc007/set.md rename to test-data/mds/tc007/set.md diff --git a/extension/test-data/mds/tc008/copy1.md b/test-data/mds/tc008/copy1.md similarity index 100% rename from extension/test-data/mds/tc008/copy1.md rename to test-data/mds/tc008/copy1.md diff --git a/extension/test-data/mds/tc008/copy2.md b/test-data/mds/tc008/copy2.md similarity index 100% rename from extension/test-data/mds/tc008/copy2.md rename to test-data/mds/tc008/copy2.md diff --git a/extension/test-data/mds/tc008/copy3.md b/test-data/mds/tc008/copy3.md similarity index 100% rename from extension/test-data/mds/tc008/copy3.md rename to test-data/mds/tc008/copy3.md diff --git a/extension/test-data/mds/tc009.d/pathExists1.md b/test-data/mds/tc009.d/pathExists1.md similarity index 100% rename from extension/test-data/mds/tc009.d/pathExists1.md rename to test-data/mds/tc009.d/pathExists1.md diff --git a/extension/test-data/mds/tc009.d/pathExists2.md b/test-data/mds/tc009.d/pathExists2.md similarity index 100% rename from extension/test-data/mds/tc009.d/pathExists2.md rename to test-data/mds/tc009.d/pathExists2.md diff --git a/extension/test-data/mds/tc009.d/pathExistsSync.md b/test-data/mds/tc009.d/pathExistsSync.md similarity index 100% rename from extension/test-data/mds/tc009.d/pathExistsSync.md rename to test-data/mds/tc009.d/pathExistsSync.md diff --git a/extension/test-data/mds/tc010/typeAlias.md b/test-data/mds/tc010/typeAlias.md similarity index 100% rename from extension/test-data/mds/tc010/typeAlias.md rename to test-data/mds/tc010/typeAlias.md diff --git a/extension/test-data/mds/tc010/typeExtends.md b/test-data/mds/tc010/typeExtends.md similarity index 100% rename from extension/test-data/mds/tc010/typeExtends.md rename to test-data/mds/tc010/typeExtends.md diff --git a/extension/test-data/mds/tc010/typePropKind.md b/test-data/mds/tc010/typePropKind.md similarity index 100% rename from extension/test-data/mds/tc010/typePropKind.md rename to test-data/mds/tc010/typePropKind.md diff --git a/extension/test-data/mds/tc011/access.md b/test-data/mds/tc011/access.md similarity index 100% rename from extension/test-data/mds/tc011/access.md rename to test-data/mds/tc011/access.md diff --git a/extension/test-data/mds/tc011/accessGet.md b/test-data/mds/tc011/accessGet.md similarity index 100% rename from extension/test-data/mds/tc011/accessGet.md rename to test-data/mds/tc011/accessGet.md diff --git a/extension/test-data/mds/tc011/accessHas.md b/test-data/mds/tc011/accessHas.md similarity index 100% rename from extension/test-data/mds/tc011/accessHas.md rename to test-data/mds/tc011/accessHas.md diff --git a/extension/test-data/mds/tc012/animal.md b/test-data/mds/tc012/animal.md similarity index 100% rename from extension/test-data/mds/tc012/animal.md rename to test-data/mds/tc012/animal.md diff --git a/extension/test-data/mds/tc012/dog.md b/test-data/mds/tc012/dog.md similarity index 100% rename from extension/test-data/mds/tc012/dog.md rename to test-data/mds/tc012/dog.md diff --git a/extension/test-data/mds/tc012/name.md b/test-data/mds/tc012/name.md similarity index 100% rename from extension/test-data/mds/tc012/name.md rename to test-data/mds/tc012/name.md diff --git a/extension/test-data/mds/tc012/size.md b/test-data/mds/tc012/size.md similarity index 100% rename from extension/test-data/mds/tc012/size.md rename to test-data/mds/tc012/size.md diff --git a/extension/test-data/mds/tc013.d/MyEventTarget.md b/test-data/mds/tc013.d/MyEventTarget.md similarity index 100% rename from extension/test-data/mds/tc013.d/MyEventTarget.md rename to test-data/mds/tc013.d/MyEventTarget.md diff --git a/extension/test-data/mds/tc013.d/addEventListener.md b/test-data/mds/tc013.d/addEventListener.md similarity index 100% rename from extension/test-data/mds/tc013.d/addEventListener.md rename to test-data/mds/tc013.d/addEventListener.md diff --git a/extension/test-data/mds/tc013.d/dispatchEvent.md b/test-data/mds/tc013.d/dispatchEvent.md similarity index 100% rename from extension/test-data/mds/tc013.d/dispatchEvent.md rename to test-data/mds/tc013.d/dispatchEvent.md diff --git a/extension/test-data/mds/tc013.d/removeEventListener.md b/test-data/mds/tc013.d/removeEventListener.md similarity index 100% rename from extension/test-data/mds/tc013.d/removeEventListener.md rename to test-data/mds/tc013.d/removeEventListener.md diff --git a/extension/test-data/mds/tc014/class.md b/test-data/mds/tc014/class.md similarity index 100% rename from extension/test-data/mds/tc014/class.md rename to test-data/mds/tc014/class.md diff --git a/extension/test-data/mds/tc014/log.md b/test-data/mds/tc014/log.md similarity index 100% rename from extension/test-data/mds/tc014/log.md rename to test-data/mds/tc014/log.md diff --git a/extension/test-data/mds/tc015.d/interface.md b/test-data/mds/tc015.d/interface.md similarity index 100% rename from extension/test-data/mds/tc015.d/interface.md rename to test-data/mds/tc015.d/interface.md diff --git a/extension/test-data/mds/tc015.d/namespace.md b/test-data/mds/tc015.d/namespace.md similarity index 100% rename from extension/test-data/mds/tc015.d/namespace.md rename to test-data/mds/tc015.d/namespace.md diff --git a/extension/test-data/mds/tc015.d/save.md b/test-data/mds/tc015.d/save.md similarity index 100% rename from extension/test-data/mds/tc015.d/save.md rename to test-data/mds/tc015.d/save.md diff --git a/extension/test-data/mds/tc015.d/version.md b/test-data/mds/tc015.d/version.md similarity index 100% rename from extension/test-data/mds/tc015.d/version.md rename to test-data/mds/tc015.d/version.md diff --git a/extension/test-data/src/tc001.ts b/test-data/src/tc001.ts similarity index 100% rename from extension/test-data/src/tc001.ts rename to test-data/src/tc001.ts diff --git a/extension/test-data/src/tc002.ts b/test-data/src/tc002.ts similarity index 100% rename from extension/test-data/src/tc002.ts rename to test-data/src/tc002.ts diff --git a/extension/test-data/src/tc003.ts b/test-data/src/tc003.ts similarity index 100% rename from extension/test-data/src/tc003.ts rename to test-data/src/tc003.ts diff --git a/extension/test-data/src/tc004.ts b/test-data/src/tc004.ts similarity index 100% rename from extension/test-data/src/tc004.ts rename to test-data/src/tc004.ts diff --git a/extension/test-data/src/tc005.ts b/test-data/src/tc005.ts similarity index 100% rename from extension/test-data/src/tc005.ts rename to test-data/src/tc005.ts diff --git a/extension/test-data/src/tc006.ts b/test-data/src/tc006.ts similarity index 100% rename from extension/test-data/src/tc006.ts rename to test-data/src/tc006.ts diff --git a/extension/test-data/src/tc007.ts b/test-data/src/tc007.ts similarity index 100% rename from extension/test-data/src/tc007.ts rename to test-data/src/tc007.ts diff --git a/extension/test-data/src/tc008.ts b/test-data/src/tc008.ts similarity index 100% rename from extension/test-data/src/tc008.ts rename to test-data/src/tc008.ts diff --git a/extension/test-data/src/tc009.d.ts b/test-data/src/tc009.d.ts similarity index 100% rename from extension/test-data/src/tc009.d.ts rename to test-data/src/tc009.d.ts diff --git a/extension/test-data/src/tc010.ts b/test-data/src/tc010.ts similarity index 100% rename from extension/test-data/src/tc010.ts rename to test-data/src/tc010.ts diff --git a/extension/test-data/src/tc011.ts b/test-data/src/tc011.ts similarity index 100% rename from extension/test-data/src/tc011.ts rename to test-data/src/tc011.ts diff --git a/extension/test-data/src/tc012.ts b/test-data/src/tc012.ts similarity index 100% rename from extension/test-data/src/tc012.ts rename to test-data/src/tc012.ts diff --git a/extension/test-data/src/tc013.d.ts b/test-data/src/tc013.d.ts similarity index 100% rename from extension/test-data/src/tc013.d.ts rename to test-data/src/tc013.d.ts diff --git a/extension/test-data/src/tc014.ts b/test-data/src/tc014.ts similarity index 100% rename from extension/test-data/src/tc014.ts rename to test-data/src/tc014.ts diff --git a/extension/test-data/src/tc015.d.ts b/test-data/src/tc015.d.ts similarity index 100% rename from extension/test-data/src/tc015.d.ts rename to test-data/src/tc015.d.ts diff --git a/extension/tsconfig.json b/tsconfig.json similarity index 100% rename from extension/tsconfig.json rename to tsconfig.json diff --git a/typedoc-livepreview-ext.code-workspace b/typedoc-livepreview-ext.code-workspace deleted file mode 100644 index 887de9c..0000000 --- a/typedoc-livepreview-ext.code-workspace +++ /dev/null @@ -1,13 +0,0 @@ -{ - "folders": [ - { - "path": "extension" - }, - { - "path": "sampleapp" - } - ], - "settings": { - "svg.preview.background": "custom" - } -} \ No newline at end of file