优化
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* This is bar
|
||||
*/
|
||||
export function bar() {
|
||||
console.log('Anything else');
|
||||
}
|
||||
|
||||
interface E {
|
||||
f: symbol;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
a: number;
|
||||
b: string;
|
||||
c: {
|
||||
d: string;
|
||||
e: E;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* This is bar with complex input
|
||||
*/
|
||||
export function complexBar(input: Options) {
|
||||
console.log('Anything else', input);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import * as mkdirp from 'mkdirp';
|
||||
|
||||
/**
|
||||
* This is foo
|
||||
*/
|
||||
export function foo(input: string) {
|
||||
console.log('Anything', input);
|
||||
mkdirp('./foo/foo/foo/foo/foo/foo/foo');
|
||||
|
||||
return input + 1;
|
||||
}
|
||||
|
||||
export const fooVar = 'fooVar' as string;
|
||||
@@ -0,0 +1,9 @@
|
||||
export { foo, fooVar } from '@/foo';
|
||||
export { bar, complexBar } from '@/bar';
|
||||
|
||||
/**
|
||||
* Root export
|
||||
*/
|
||||
export function main() {
|
||||
console.log('main');
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"@/*": ["./*"],
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user