Skip to content

Commit fd0e4aa

Browse files
rename src/index.d.ts into types.d.ts
1 parent 6c4d8a0 commit fd0e4aa

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FC, PropsWithChildren } from 'react';
2-
import type { StringToReactComponentProps } from './src/index.d';
3-
export { StringToReactComponentProps } from './src/index.d';
2+
import type { StringToReactComponentProps } from './src/types.d';
3+
export { StringToReactComponentProps } from './src/types.d';
44
declare const StringToReactComponent: FC<PropsWithChildren<StringToReactComponentProps>>;
55
export default StringToReactComponent;

src/ctx.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {TransformOptions} from '@babel/core';
2-
import type {TBabel, TReact, IStringToReactApi} from './index.d';
2+
import type {TBabel, TReact, IStringToReactApi} from './types.d';
33
import {FC, PropsWithChildren} from 'react';
44
class Ctx implements IStringToReactApi {
55
_temp: string = '';

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import Ctx from './ctx';
33
import * as Babel from '@babel/standalone';
4-
import type { TBabel, TReact, IStringToReactApi } from './index.d';
4+
import type { TBabel, TReact, IStringToReactApi } from './types.d';
55
import StringToReact from './strintToReact';
66
const getCtx: (React: TReact, Babel: TBabel) => IStringToReactApi = (React: TReact, Babel: TBabel) => new Ctx(React, Babel);
77
export default StringToReact.bind(null, { getCtx: getCtx, Babel: Babel, react: React });

src/strintToReact.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {useRef} from 'react';
2-
import type {StringToReactComponentProps, IStringToReactApi, TBabel, TReact} from './index.d';
2+
import type {StringToReactComponentProps, IStringToReactApi, TBabel, TReact} from './types.d';
33
function StringToReactComponent(
44
deps: {getCtx: (react: TReact, Babel: TBabel) => IStringToReactApi; react: TReact; Babel: TBabel},
55
props: StringToReactComponentProps,
File renamed without changes.

0 commit comments

Comments
 (0)