|
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 | |
|---|
| 1 | export 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 |
|
|---|
| 11 | export function resolve<T=any>(pkg: T, entry: string, options?: Options): string | void;
|
|---|
| 12 |
|
|---|
| 13 | export type BrowserFiles = Record<string, string | false>;
|
|---|
| 14 |
|
|---|
| 15 | export function legacy<T=any>(pkg: T, options: { browser: true, fields?: readonly string[] }): BrowserFiles | string | void;
|
|---|
| 16 | export function legacy<T=any>(pkg: T, options: { browser: string, fields?: readonly string[] }): string | false | void;
|
|---|
| 17 | export function legacy<T=any>(pkg: T, options: { browser: false, fields?: readonly string[] }): string | void;
|
|---|
| 18 | export 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.