generated from napi-rs/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
45 lines (41 loc) · 1.37 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export class ExternalObject<T> {
readonly '': {
readonly '': unique symbol
[K: symbol]: T
}
}
export interface Alias {
key: string
value?: string
}
export interface RawResolverOptions {
extensions?: Array<string>
enforceExtension?: boolean
alias?: Array<Alias>
browserField?: boolean
conditionNames?: Array<string>
symlinks?: boolean
descriptionFile?: string | undefined | null
mainFiles?: Array<string>
mainFields?: Array<string>
modules?: Array<string>
preferRelative?: boolean
tsconfigPath?: string
}
export interface ResolverInternal {
}
export function create(options: RawResolverOptions): ExternalObject<ResolverInternal>
export interface ResolverCacheInternal {
}
export function createExternalCache(): ExternalObject<ResolverCacheInternal>
export function createWithExternalCache(options: RawResolverOptions, external_cache: ExternalObject<ResolverCacheInternal>): ExternalObject<ResolverInternal>
export function resolve(resolver: ExternalObject<ResolverInternal>, base_dir: string, id: string): string
export interface SideEffectsStats {
boolVal?: boolean
arrayVal?: Array<string>
pkgFilePath: string
}
export function loadSideEffects(resolver: ExternalObject<ResolverInternal>, path: string): {boolVal?: boolean, arrayVal?: string[], pkgFilePath: string} | undefined