Skip to content

Commit

Permalink
chore: Use @types/relationship.js ts support (mumuy/relationship#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
NriotHrreion committed Nov 10, 2024
1 parent 3756cea commit 31982e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
9 changes: 8 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"@capacitor/cli": "^5.3.0",
"@capacitor/core": "^5.3.0",
"@types/downloadjs": "^1.4.3",
"@types/react-katex": "^3.0.0"
"@types/react-katex": "^3.0.0",
"@types/relationship.js": "^1.2.2"
}
}
21 changes: 0 additions & 21 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,27 +77,6 @@ declare module "*.worker.ts" {
export default WebpackWorker;
}

declare module "relationship.js" {
interface Options {
text: string
target?: string
sex?: -1 | 0 | 1
type?: "default" | "chain" | "pair"
reverse?: boolean
mode?: string
optimal?: boolean
}

interface ModeData {
[key: string]: string[]
}

function relationship(arg: Options | string): string[];

export default relationship;
export function setMode(name: string, data: ModeData);
}

declare module "chemical-elements" {
export const elements: {
number: number
Expand Down

1 comment on commit 31982e8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.