Use typescript for the project

This commit is contained in:
Artur Gurgul 2025-02-24 18:46:31 +01:00
parent 0f1d41a991
commit 83fd79f674
24 changed files with 2882 additions and 115 deletions

1
types/index.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export {};

7
types/markdown.d.ts vendored Normal file
View file

@ -0,0 +1,7 @@
export declare function parseMD(file: string): {
meta: {
[key: string]: any;
};
content: string | Promise<string>;
};
export declare function parseMarkdown(obj: any): void;

3
types/project.d.ts vendored Normal file
View file

@ -0,0 +1,3 @@
export declare function newProject(): void;
export declare function buildProject(): void;
export declare function appProject(): void;

1
types/serve.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export declare function serve(): void;

2
types/site.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
export declare function readConfig(): any;
export declare function build(config: any): void;

1
types/ssh.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export {};

4
types/utils.d.ts vendored Normal file
View file

@ -0,0 +1,4 @@
export declare function parseYML(file: string): unknown;
export declare function getAllFilesWithExtension(directory: string, extension: string, excludes: string[]): string[];
export declare function cp(source: string, destination: string): void;
export declare function pathToArray(filePath: string): string[];

1
types/watch.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export declare function setWatcher(callback: (url: string) => void): void;