inital
This commit is contained in:
9
node_modules/liquidjs/dist/fs/fs-impl.d.ts
generated
vendored
Normal file
9
node_modules/liquidjs/dist/fs/fs-impl.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export declare function exists(filepath: string): Promise<boolean>;
|
||||
export declare function readFile(filepath: string): Promise<string>;
|
||||
export declare function existsSync(filepath: string): boolean;
|
||||
export declare function readFileSync(filepath: string): string;
|
||||
export declare function resolve(root: string, file: string, ext: string): string;
|
||||
export declare function fallback(file: string): string | undefined;
|
||||
export declare function dirname(filepath: string): string;
|
||||
export declare function contains(root: string, file: string): boolean;
|
||||
export { sep } from 'path';
|
1
node_modules/liquidjs/dist/fs/fs-impl.spec.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/fs/fs-impl.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
20
node_modules/liquidjs/dist/fs/fs.d.ts
generated
vendored
Normal file
20
node_modules/liquidjs/dist/fs/fs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface FS {
|
||||
/** check if a file exists asynchronously */
|
||||
exists: (filepath: string) => Promise<boolean>;
|
||||
/** check if a file exists synchronously */
|
||||
existsSync: (filepath: string) => boolean;
|
||||
/** read a file asynchronously */
|
||||
readFile: (filepath: string) => Promise<string>;
|
||||
/** read a file synchronously */
|
||||
readFileSync: (filepath: string) => string;
|
||||
/** resolve a file against directory, for given `ext` option */
|
||||
resolve: (dir: string, file: string, ext: string) => string;
|
||||
/** check if file is contained in `root`, always return `true` by default. Warning: not setting this could expose path traversal vulnerabilities. */
|
||||
contains?: (root: string, file: string) => boolean;
|
||||
/** defaults to "/" */
|
||||
sep?: string;
|
||||
/** required for relative path resolving */
|
||||
dirname?: (file: string) => string;
|
||||
/** fallback file for lookup failure */
|
||||
fallback?: (file: string) => string | undefined;
|
||||
}
|
2
node_modules/liquidjs/dist/fs/index.d.ts
generated
vendored
Normal file
2
node_modules/liquidjs/dist/fs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './loader';
|
||||
export * from './fs';
|
24
node_modules/liquidjs/dist/fs/loader.d.ts
generated
vendored
Normal file
24
node_modules/liquidjs/dist/fs/loader.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { FS } from './fs';
|
||||
export interface LoaderOptions {
|
||||
fs: FS;
|
||||
extname: string;
|
||||
root: string[];
|
||||
partials: string[];
|
||||
layouts: string[];
|
||||
relativeReference: boolean;
|
||||
}
|
||||
export declare enum LookupType {
|
||||
Partials = "partials",
|
||||
Layouts = "layouts",
|
||||
Root = "root"
|
||||
}
|
||||
export declare class Loader {
|
||||
shouldLoadRelative: (referencedFile: string) => boolean;
|
||||
private options;
|
||||
private contains;
|
||||
constructor(options: LoaderOptions);
|
||||
lookup(file: string, type: LookupType, sync?: boolean, currentFile?: string): Generator<unknown, string, string>;
|
||||
candidates(file: string, dirs: string[], currentFile?: string, enforceRoot?: boolean): Generator<string, void, unknown>;
|
||||
private dirname;
|
||||
private lookupError;
|
||||
}
|
1
node_modules/liquidjs/dist/fs/loader.spec.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/fs/loader.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
13
node_modules/liquidjs/dist/fs/map-fs.d.ts
generated
vendored
Normal file
13
node_modules/liquidjs/dist/fs/map-fs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
export declare class MapFS {
|
||||
private mapping;
|
||||
constructor(mapping: {
|
||||
[key: string]: string;
|
||||
});
|
||||
sep: string;
|
||||
exists(filepath: string): Promise<boolean>;
|
||||
existsSync(filepath: string): boolean;
|
||||
readFile(filepath: string): Promise<string>;
|
||||
readFileSync(filepath: string): string;
|
||||
dirname(filepath: string): string;
|
||||
resolve(dir: string, file: string, ext: string): string;
|
||||
}
|
1
node_modules/liquidjs/dist/fs/map-fs.spec.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/fs/map-fs.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
1
node_modules/liquidjs/dist/fs/node-require.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/fs/node-require.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const requireResolve: (partial: string) => string;
|
Reference in New Issue
Block a user