Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
40
Frontend-Learner/node_modules/unctx/dist/transform.d.ts
generated
vendored
Normal file
40
Frontend-Learner/node_modules/unctx/dist/transform.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import MagicString from 'magic-string';
|
||||
|
||||
interface TransformerOptions {
|
||||
/**
|
||||
* The function names to be transformed.
|
||||
*
|
||||
* @default ['withAsyncContext']
|
||||
*/
|
||||
asyncFunctions?: string[];
|
||||
/**
|
||||
* @default 'unctx'
|
||||
*/
|
||||
helperModule?: string;
|
||||
/**
|
||||
* @default 'executeAsync'
|
||||
*/
|
||||
helperName?: string;
|
||||
/**
|
||||
* Whether to transform properties of an object defined with a helper function. For example,
|
||||
* to transform key `middleware` within the object defined with function `defineMeta`, you would pass:
|
||||
* `{ defineMeta: ['middleware'] }`.
|
||||
* @default {}
|
||||
*/
|
||||
objectDefinitions?: Record<string, string[]>;
|
||||
}
|
||||
declare function createTransformer(options?: TransformerOptions): {
|
||||
transform: (code: string, options_?: {
|
||||
force?: false;
|
||||
}) => {
|
||||
code: string;
|
||||
magicString: MagicString;
|
||||
} | undefined;
|
||||
filter: {
|
||||
code: RegExp;
|
||||
};
|
||||
shouldTransform: (code: string) => boolean;
|
||||
};
|
||||
|
||||
export { createTransformer };
|
||||
export type { TransformerOptions };
|
||||
Loading…
Add table
Add a link
Reference in a new issue