index.d.ts 679 B

1234567891011121314151617181920212223
  1. import 'resolve-global';
  2. export interface ResolvedConfig {
  3. parserPreset?: unknown;
  4. [key: string]: unknown;
  5. }
  6. export interface ResolveExtendsConfig {
  7. extends?: string | string[];
  8. helpUrl?: string;
  9. [key: string]: unknown;
  10. }
  11. export interface ResolveExtendsContext {
  12. cwd?: string;
  13. parserPreset?: unknown;
  14. prefix?: string;
  15. resolve?(id: string, ctx?: {
  16. prefix?: string;
  17. cwd?: string;
  18. }): string;
  19. resolveGlobal?: (id: string) => string;
  20. require?<T>(id: string): T;
  21. }
  22. export default function resolveExtends(config?: ResolveExtendsConfig, context?: ResolveExtendsContext): ResolvedConfig;
  23. //# sourceMappingURL=index.d.ts.map