You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
589 B
22 lines
589 B
import { Next } from "./types";
|
|
/**
|
|
* Quote a string.
|
|
*/
|
|
export declare function quoteString(str: string): string;
|
|
/**
|
|
* Test for valid JavaScript identifier.
|
|
*/
|
|
export declare const IS_VALID_IDENTIFIER: RegExp;
|
|
/**
|
|
* Check if a variable name is valid.
|
|
*/
|
|
export declare function isValidVariableName(name: PropertyKey): name is string;
|
|
/**
|
|
* Quote JavaScript key access.
|
|
*/
|
|
export declare function quoteKey(key: PropertyKey, next: Next): string | undefined;
|
|
/**
|
|
* Serialize the path to a string.
|
|
*/
|
|
export declare function stringifyPath(path: PropertyKey[], next: Next): string;
|