Skip to content

typings for defaultless settings#512

Merged
Vendicated merged 4 commits into
Vendicated:mainfrom
Vap0r1ze:fix/defaultless-settings
Feb 28, 2023
Merged

typings for defaultless settings#512
Vendicated merged 4 commits into
Vendicated:mainfrom
Vap0r1ze:fix/defaultless-settings

Conversation

@Vap0r1ze
Copy link
Copy Markdown
Contributor

this adds real typings for settings definitions that dont have a default field:

  • COMPONENT types are still always any
  • SELECT types are T | undefined if there are no { default: boolean } elements
  • everything else is T | undefined if there is no default field

@Vap0r1ze
Copy link
Copy Markdown
Contributor Author

@Captain8771 can you review as well

@Captain8771
Copy link
Copy Markdown
Contributor

(i have no clue what is good practice in typing)

Comment thread src/plugins/customRPC.tsx
Comment thread src/plugins/customRPC.tsx Outdated
@Vap0r1ze Vap0r1ze requested a review from Vendicated February 28, 2023 04:48
@Vap0r1ze
Copy link
Copy Markdown
Contributor Author

yop

@Vendicated Vendicated merged commit 5ec5178 into Vendicated:main Feb 28, 2023
@Vap0r1ze Vap0r1ze deleted the fix/defaultless-settings branch July 31, 2023 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants