Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
30
Frontend-Learner/node_modules/strip-literal/dist/index.d.ts
generated
vendored
Normal file
30
Frontend-Learner/node_modules/strip-literal/dist/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { Token } from 'js-tokens';
|
||||
|
||||
interface StripLiteralOptions {
|
||||
/**
|
||||
* Will be called for each string literal. Return false to skip stripping.
|
||||
*/
|
||||
filter?: (s: string) => boolean;
|
||||
/**
|
||||
* Fill the stripped literal with this character.
|
||||
* It must be a single character.
|
||||
*
|
||||
* @default ' '
|
||||
*/
|
||||
fillChar?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip literal from code.
|
||||
*/
|
||||
declare function stripLiteral(code: string, options?: StripLiteralOptions): string;
|
||||
/**
|
||||
* Strip literal from code, return more detailed information.
|
||||
*/
|
||||
declare function stripLiteralDetailed(code: string, options?: StripLiteralOptions): {
|
||||
result: string;
|
||||
tokens: Token[];
|
||||
};
|
||||
|
||||
export { stripLiteral, stripLiteralDetailed, stripLiteralDetailed as stripLiteralJsTokens };
|
||||
export type { StripLiteralOptions };
|
||||
Loading…
Add table
Add a link
Reference in a new issue