Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/rollup/dist/rollup.d.ts

    rd565449 r0c6b92a  
    212212export type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
    213213
    214 export interface CustomPluginOptions {
    215         [plugin: string]: any;
    216 }
     214export type CustomPluginOptions = Record<string, any>;
    217215
    218216type LoggingFunctionWithPosition = (
     
    223221export type ParseAst = (
    224222        input: string,
    225         options?: { allowReturnOutsideFunction?: boolean }
     223        options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean }
    226224) => ProgramNode;
    227225
    228226// declare AbortSignal here for environments without DOM lib or @types/node
    229227declare global {
     228        // eslint-disable-next-line @typescript-eslint/no-empty-object-type
    230229        interface AbortSignal {}
    231230}
     
    233232export type ParseAstAsync = (
    234233        input: string,
    235         options?: { allowReturnOutsideFunction?: boolean; signal?: AbortSignal }
     234        options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean; signal?: AbortSignal }
    236235) => Promise<ProgramNode>;
    237236
     
    276275}
    277276
    278 export interface ResolvedIdMap {
    279         [key: string]: ResolvedId;
    280 }
     277export type ResolvedIdMap = Record<string, ResolvedId>;
    281278
    282279interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
     
    396393 * ```
    397394 */
    398 // eslint-disable-next-line @typescript-eslint/ban-types
    399395export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;
    400396
    401 export interface OutputBundle {
    402         [fileName: string]: OutputAsset | OutputChunk;
    403 }
     397export type OutputBundle = Record<string, OutputAsset | OutputChunk>;
    404398
    405399export interface FunctionPluginHooks {
     
    506500        : never;
    507501
    508 // eslint-disable-next-line @typescript-eslint/ban-types
     502// eslint-disable-next-line @typescript-eslint/no-empty-object-type
    509503type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
    510504
     
    512506        [K in keyof FunctionPluginHooks]: ObjectHook<
    513507                K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K],
    514                 // eslint-disable-next-line @typescript-eslint/ban-types
     508                // eslint-disable-next-line @typescript-eslint/no-empty-object-type
    515509                K extends ParallelPluginHooks ? { sequential?: boolean } : {}
    516510        >;
     
    519513export interface OutputPlugin
    520514        extends Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>,
    521                 Partial<{ [K in AddonHooks]: ObjectHook<AddonHook> }> {
     515                Partial<Record<AddonHooks, ObjectHook<AddonHook>>> {
    522516        cacheKey?: string;
    523517        name: string;
     
    529523        api?: A;
    530524}
     525
     526export type JsxPreset = 'react' | 'react-jsx' | 'preserve' | 'preserve-react';
     527
     528export type NormalizedJsxOptions =
     529        | NormalizedJsxPreserveOptions
     530        | NormalizedJsxClassicOptions
     531        | NormalizedJsxAutomaticOptions;
     532
     533interface NormalizedJsxPreserveOptions {
     534        factory: string | null;
     535        fragment: string | null;
     536        importSource: string | null;
     537        mode: 'preserve';
     538}
     539
     540interface NormalizedJsxClassicOptions {
     541        factory: string;
     542        fragment: string;
     543        importSource: string | null;
     544        mode: 'classic';
     545}
     546
     547interface NormalizedJsxAutomaticOptions {
     548        factory: string;
     549        importSource: string | null;
     550        jsxImportSource: string;
     551        mode: 'automatic';
     552}
     553
     554export type JsxOptions = Partial<NormalizedJsxOptions> & {
     555        preset?: JsxPreset;
     556};
    531557
    532558export type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
     
    552578        getModuleInfo: GetModuleInfo;
    553579}
     580
    554581export type GetManualChunk = (id: string, meta: ManualChunkMeta) => string | NullValue;
    555582
     
    560587        | ((source: string, importer: string | undefined, isResolved: boolean) => boolean | NullValue);
    561588
    562 export type GlobalsOption = { [name: string]: string } | ((name: string) => string);
    563 
    564 export type InputOption = string | string[] | { [entryAlias: string]: string };
    565 
    566 export type ManualChunksOption = { [chunkAlias: string]: string[] } | GetManualChunk;
     589export type GlobalsOption = Record<string, string> | ((name: string) => string);
     590
     591export type InputOption = string | string[] | Record<string, string>;
     592
     593export type ManualChunksOption = Record<string, string[]> | GetManualChunk;
    567594
    568595export type LogHandlerWithDefault = (
     
    599626        external?: ExternalOption;
    600627        input?: InputOption;
     628        jsx?: false | JsxPreset | JsxOptions;
    601629        logLevel?: LogLevelOption;
    602630        makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource';
    603631        maxParallelFileOps?: number;
    604         moduleContext?: ((id: string) => string | NullValue) | { [id: string]: string };
     632        moduleContext?: ((id: string) => string | NullValue) | Record<string, string>;
    605633        onLog?: LogHandlerWithDefault;
    606634        onwarn?: WarningHandlerWithDefault;
     
    625653        experimentalLogSideEffects: boolean;
    626654        external: IsExternal;
    627         input: string[] | { [entryAlias: string]: string };
     655        input: string[] | Record<string, string>;
     656        jsx: false | NormalizedJsxOptions;
    628657        logLevel: LogLevelOption;
    629658        makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource';
     
    754783        sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
    755784        sourcemapPathTransform?: SourcemapPathTransformOption;
     785        sourcemapDebugIds?: boolean;
    756786        strict?: boolean;
    757787        systemNullSetters?: boolean;
    758788        validate?: boolean;
     789        virtualDirname?: string;
    759790}
    760791
     
    807838        sourcemapIgnoreList: SourcemapIgnoreListOption;
    808839        sourcemapPathTransform: SourcemapPathTransformOption | undefined;
     840        sourcemapDebugIds: boolean;
    809841        strict: boolean;
    810842        systemNullSetters: boolean;
    811843        validate: boolean;
     844        virtualDirname: string;
    812845}
    813846
     
    817850) => void;
    818851
    819 export interface SerializedTimings {
    820         [label: string]: [number, number, number];
    821 }
     852export type SerializedTimings = Record<string, [number, number, number]>;
    822853
    823854export interface PreRenderedAsset {
     855        /** @deprecated Use "names" instead. */
    824856        name: string | undefined;
     857        names: string[];
     858        /** @deprecated Use "originalFileNames" instead. */
    825859        originalFileName: string | null;
     860        originalFileNames: string[];
    826861        source: string | Uint8Array;
    827862        type: 'asset';
     
    856891        fileName: string;
    857892        implicitlyLoadedBefore: string[];
    858         importedBindings: {
    859                 [imported: string]: string[];
    860         };
     893        importedBindings: Record<string, string[]>;
    861894        imports: string[];
    862         modules: {
    863                 [id: string]: RenderedModule;
    864         };
     895        modules: Record<string, RenderedModule>;
    865896        referencedFiles: string[];
    866897}
     
    873904}
    874905
    875 export interface SerializablePluginCache {
    876         [key: string]: [number, any];
    877 }
     906export type SerializablePluginCache = Record<string, [number, any]>;
    878907
    879908export interface RollupCache {
     
    890919        close: () => Promise<void>;
    891920        closed: boolean;
     921        [Symbol.asyncDispose](): Promise<void>;
    892922        generate: (outputOptions: OutputOptions) => Promise<RollupOutput>;
    893923        getTimings?: () => SerializedTimings;
     
    947977
    948978export type AwaitedEventListener<
    949         T extends { [event: string]: (...parameters: any) => any },
     979        T extends Record<string, (...parameters: any) => any>,
    950980        K extends keyof T
    951981> = (...parameters: Parameters<T[K]>) => void | Promise<void>;
    952982
    953 export interface AwaitingEventEmitter<T extends { [event: string]: (...parameters: any) => any }> {
     983export interface AwaitingEventEmitter<T extends Record<string, (...parameters: any) => any>> {
    954984        close(): Promise<void>;
    955985        emit<K extends keyof T>(event: K, ...parameters: Parameters<T[K]>): Promise<unknown>;
Note: See TracChangeset for help on using the changeset viewer.