Changeset 0c6b92a for imaps-frontend/node_modules/rollup/dist/rollup.d.ts
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/rollup/dist/rollup.d.ts
rd565449 r0c6b92a 212 212 export type GetModuleInfo = (moduleId: string) => ModuleInfo | null; 213 213 214 export interface CustomPluginOptions { 215 [plugin: string]: any; 216 } 214 export type CustomPluginOptions = Record<string, any>; 217 215 218 216 type LoggingFunctionWithPosition = ( … … 223 221 export type ParseAst = ( 224 222 input: string, 225 options?: { allowReturnOutsideFunction?: boolean }223 options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean } 226 224 ) => ProgramNode; 227 225 228 226 // declare AbortSignal here for environments without DOM lib or @types/node 229 227 declare global { 228 // eslint-disable-next-line @typescript-eslint/no-empty-object-type 230 229 interface AbortSignal {} 231 230 } … … 233 232 export type ParseAstAsync = ( 234 233 input: string, 235 options?: { allowReturnOutsideFunction?: boolean; signal?: AbortSignal }234 options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean; signal?: AbortSignal } 236 235 ) => Promise<ProgramNode>; 237 236 … … 276 275 } 277 276 278 export interface ResolvedIdMap { 279 [key: string]: ResolvedId; 280 } 277 export type ResolvedIdMap = Record<string, ResolvedId>; 281 278 282 279 interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> { … … 396 393 * ``` 397 394 */ 398 // eslint-disable-next-line @typescript-eslint/ban-types399 395 export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>; 400 396 401 export interface OutputBundle { 402 [fileName: string]: OutputAsset | OutputChunk; 403 } 397 export type OutputBundle = Record<string, OutputAsset | OutputChunk>; 404 398 405 399 export interface FunctionPluginHooks { … … 506 500 : never; 507 501 508 // eslint-disable-next-line @typescript-eslint/ ban-types502 // eslint-disable-next-line @typescript-eslint/no-empty-object-type 509 503 type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O); 510 504 … … 512 506 [K in keyof FunctionPluginHooks]: ObjectHook< 513 507 K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K], 514 // eslint-disable-next-line @typescript-eslint/ ban-types508 // eslint-disable-next-line @typescript-eslint/no-empty-object-type 515 509 K extends ParallelPluginHooks ? { sequential?: boolean } : {} 516 510 >; … … 519 513 export interface OutputPlugin 520 514 extends Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>, 521 Partial< { [K in AddonHooks]: ObjectHook<AddonHook> }> {515 Partial<Record<AddonHooks, ObjectHook<AddonHook>>> { 522 516 cacheKey?: string; 523 517 name: string; … … 529 523 api?: A; 530 524 } 525 526 export type JsxPreset = 'react' | 'react-jsx' | 'preserve' | 'preserve-react'; 527 528 export type NormalizedJsxOptions = 529 | NormalizedJsxPreserveOptions 530 | NormalizedJsxClassicOptions 531 | NormalizedJsxAutomaticOptions; 532 533 interface NormalizedJsxPreserveOptions { 534 factory: string | null; 535 fragment: string | null; 536 importSource: string | null; 537 mode: 'preserve'; 538 } 539 540 interface NormalizedJsxClassicOptions { 541 factory: string; 542 fragment: string; 543 importSource: string | null; 544 mode: 'classic'; 545 } 546 547 interface NormalizedJsxAutomaticOptions { 548 factory: string; 549 importSource: string | null; 550 jsxImportSource: string; 551 mode: 'automatic'; 552 } 553 554 export type JsxOptions = Partial<NormalizedJsxOptions> & { 555 preset?: JsxPreset; 556 }; 531 557 532 558 export type TreeshakingPreset = 'smallest' | 'safest' | 'recommended'; … … 552 578 getModuleInfo: GetModuleInfo; 553 579 } 580 554 581 export type GetManualChunk = (id: string, meta: ManualChunkMeta) => string | NullValue; 555 582 … … 560 587 | ((source: string, importer: string | undefined, isResolved: boolean) => boolean | NullValue); 561 588 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;589 export type GlobalsOption = Record<string, string> | ((name: string) => string); 590 591 export type InputOption = string | string[] | Record<string, string>; 592 593 export type ManualChunksOption = Record<string, string[]> | GetManualChunk; 567 594 568 595 export type LogHandlerWithDefault = ( … … 599 626 external?: ExternalOption; 600 627 input?: InputOption; 628 jsx?: false | JsxPreset | JsxOptions; 601 629 logLevel?: LogLevelOption; 602 630 makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource'; 603 631 maxParallelFileOps?: number; 604 moduleContext?: ((id: string) => string | NullValue) | { [id: string]: string };632 moduleContext?: ((id: string) => string | NullValue) | Record<string, string>; 605 633 onLog?: LogHandlerWithDefault; 606 634 onwarn?: WarningHandlerWithDefault; … … 625 653 experimentalLogSideEffects: boolean; 626 654 external: IsExternal; 627 input: string[] | { [entryAlias: string]: string }; 655 input: string[] | Record<string, string>; 656 jsx: false | NormalizedJsxOptions; 628 657 logLevel: LogLevelOption; 629 658 makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource'; … … 754 783 sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption; 755 784 sourcemapPathTransform?: SourcemapPathTransformOption; 785 sourcemapDebugIds?: boolean; 756 786 strict?: boolean; 757 787 systemNullSetters?: boolean; 758 788 validate?: boolean; 789 virtualDirname?: string; 759 790 } 760 791 … … 807 838 sourcemapIgnoreList: SourcemapIgnoreListOption; 808 839 sourcemapPathTransform: SourcemapPathTransformOption | undefined; 840 sourcemapDebugIds: boolean; 809 841 strict: boolean; 810 842 systemNullSetters: boolean; 811 843 validate: boolean; 844 virtualDirname: string; 812 845 } 813 846 … … 817 850 ) => void; 818 851 819 export interface SerializedTimings { 820 [label: string]: [number, number, number]; 821 } 852 export type SerializedTimings = Record<string, [number, number, number]>; 822 853 823 854 export interface PreRenderedAsset { 855 /** @deprecated Use "names" instead. */ 824 856 name: string | undefined; 857 names: string[]; 858 /** @deprecated Use "originalFileNames" instead. */ 825 859 originalFileName: string | null; 860 originalFileNames: string[]; 826 861 source: string | Uint8Array; 827 862 type: 'asset'; … … 856 891 fileName: string; 857 892 implicitlyLoadedBefore: string[]; 858 importedBindings: { 859 [imported: string]: string[]; 860 }; 893 importedBindings: Record<string, string[]>; 861 894 imports: string[]; 862 modules: { 863 [id: string]: RenderedModule; 864 }; 895 modules: Record<string, RenderedModule>; 865 896 referencedFiles: string[]; 866 897 } … … 873 904 } 874 905 875 export interface SerializablePluginCache { 876 [key: string]: [number, any]; 877 } 906 export type SerializablePluginCache = Record<string, [number, any]>; 878 907 879 908 export interface RollupCache { … … 890 919 close: () => Promise<void>; 891 920 closed: boolean; 921 [Symbol.asyncDispose](): Promise<void>; 892 922 generate: (outputOptions: OutputOptions) => Promise<RollupOutput>; 893 923 getTimings?: () => SerializedTimings; … … 947 977 948 978 export type AwaitedEventListener< 949 T extends { [event: string]: (...parameters: any) => any },979 T extends Record<string, (...parameters: any) => any>, 950 980 K extends keyof T 951 981 > = (...parameters: Parameters<T[K]>) => void | Promise<void>; 952 982 953 export interface AwaitingEventEmitter<T extends { [event: string]: (...parameters: any) => any }> {983 export interface AwaitingEventEmitter<T extends Record<string, (...parameters: any) => any>> { 954 984 close(): Promise<void>; 955 985 emit<K extends keyof T>(event: K, ...parameters: Parameters<T[K]>): Promise<unknown>;
Note:
See TracChangeset
for help on using the changeset viewer.