source: frontend/node_modules/resolve.exports/index.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 828 bytes
Line 
1export type Options = {
2 browser?: boolean;
3 conditions?: readonly string[];
4 require?: boolean;
5 unsafe?: false;
6} | {
7 conditions?: readonly string[];
8 unsafe?: true;
9}
10
11export function resolve<T=any>(pkg: T, entry: string, options?: Options): string | void;
12
13export type BrowserFiles = Record<string, string | false>;
14
15export function legacy<T=any>(pkg: T, options: { browser: true, fields?: readonly string[] }): BrowserFiles | string | void;
16export function legacy<T=any>(pkg: T, options: { browser: string, fields?: readonly string[] }): string | false | void;
17export function legacy<T=any>(pkg: T, options: { browser: false, fields?: readonly string[] }): string | void;
18export function legacy<T=any>(pkg: T, options?: {
19 browser?: boolean | string;
20 fields?: readonly string[];
21}): BrowserFiles | string | false | void;
Note: See TracBrowser for help on using the repository browser.