You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
661 B
TypeScript
32 lines
661 B
TypeScript
export interface Cache {
|
|
set(key: string, value: any): value
|
|
get(key: string): any
|
|
clear(): void
|
|
}
|
|
|
|
export interface Expr {
|
|
setConfig(config: { contentSecurityPolicy: boolean }): void
|
|
|
|
Cache: {
|
|
new (maxSize: number): Cache
|
|
}
|
|
|
|
split(path: string): string[]
|
|
setter(path: string): (data: any, value: any) => any
|
|
getter(path: string, safe?: boolean): (data: any) => any
|
|
join(segments: string[]): string
|
|
forEach(
|
|
path: string | string[],
|
|
callback: (
|
|
part: string,
|
|
isBracket: boolean,
|
|
isArray: boolean,
|
|
idx: number,
|
|
parts: string[]
|
|
) => any
|
|
): void
|
|
}
|
|
|
|
declare const expr: Expr
|
|
export default expr
|