mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
Co-authored-by: 遇见同学 <1875694521@qq.com> Co-authored-by: lijianan <574980606@qq.com> Co-authored-by: afc163 <afc163@gmail.com>
38 lines
913 B
TypeScript
38 lines
913 B
TypeScript
// https://github.com/facebook/create-react-app/blob/f09d3d3a52c1b938cecc977c2bbc0942ea0a7e70/packages/react-scripts/lib/react-app.d.ts#L42-L49
|
|
declare module '*.svg' {
|
|
import type * as React from 'react';
|
|
|
|
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
|
|
const src: string;
|
|
export default src;
|
|
}
|
|
|
|
declare module 'jsonml-to-react-element';
|
|
|
|
declare module 'jsonml.js/*';
|
|
|
|
declare module '*.json' {
|
|
const value: any;
|
|
export const version: string;
|
|
export default value;
|
|
}
|
|
|
|
// https://github.com/umijs/dumi/pull/2281
|
|
declare module '*.md' {
|
|
const content: React.FC;
|
|
export default content;
|
|
}
|
|
|
|
declare module '@npmcli/run-script' {
|
|
export default function runScript(options: {
|
|
[key: string]: string | string[] | boolean | NodeJS.ProcessEnv;
|
|
}): Promise<void>;
|
|
}
|
|
|
|
declare module '@microflash/rehype-figure';
|
|
|
|
declare module 'dekko';
|
|
|
|
declare module 'csstree-validator';
|