Skip to content

Conversation

@KevinGhadyani-Okta
Copy link
Contributor

OKTA-691092

Summary

Converts properties-to-ts.js to properties-to-ts.ts. This allows us to check types on it just like any other file in the library.

I also swapped out ts-node for tsx because I couldn't run this with ts-node. In fact, it was giving a strange error of an unknown filetype .ts. Maybe a bad regex. Either way, tsx is the up 'n comer and worked great outta the box without any special configurations like ts-node, so I included it as part of this PR.

I verified both ts-node commands work: generate:i18n and generate:iconsIndex.

Testing & Screenshots

  • I have confirmed this change with my designer and the Odyssey Design Team.

N/A

@KevinGhadyani-Okta KevinGhadyani-Okta merged commit 83e508e into main Feb 16, 2024
@KevinGhadyani-Okta KevinGhadyani-Okta deleted the kg/OKTA-691092 branch February 16, 2024 17:42
benlister-okta pushed a commit that referenced this pull request Feb 20, 2024
* build: converts ts-node to tsx

* build: updates properties-to-ts to use TypeScript

* fix: exports FocusHandle from the correct location

* fix: removes unused recursive-readdir

* fix: minor refactor of filename in properties-to-ts

* fix: refactored properties.d.ts using future PR with better code docs

* fix: removed cyclical reference to icons index

* fix: renamed variables in convertPropertiesToJson
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.

4 participants