Cleanup @tldraw/ui types / exports (#1504)
This PR cleans up exports from TldrawUi, unifying types under `TLUi` and removing many items from exports / marking others as internal. ### Change Type - [x] `major` — Breaking Change ### Release Notes - [editor] clean up / unify types
This commit is contained in:
parent
735f1c41b7
commit
a5e653b225
61 changed files with 807 additions and 1255 deletions
|
@ -85,7 +85,7 @@ async function copyIcons() {
|
|||
${icons.map((icon) => JSON.stringify(icon.replace('.svg', ''))).join(' | ')}
|
||||
|
||||
/** @public */
|
||||
export const TLUiIconTypes = [
|
||||
export const iconTypes = [
|
||||
${icons.map((icon) => JSON.stringify(icon.replace('.svg', ''))).join(', ')}
|
||||
] as const`
|
||||
|
||||
|
@ -239,10 +239,10 @@ async function copyTranslations() {
|
|||
// translationKeys.ts
|
||||
|
||||
const translationKeys = Object.keys(defaultTranslation).map((key) => `'${key}'`)
|
||||
const translationKeysFilePath = join(uiPath, 'TLTranslationKey.ts')
|
||||
const translationKeysFilePath = join(uiPath, 'TLUiTranslationKey.ts')
|
||||
const translationKeysFile = `
|
||||
/** @public */
|
||||
export type TLTranslationKey = ${translationKeys.join(' | ')}
|
||||
export type TLUiTranslationKey = ${translationKeys.join(' | ')}
|
||||
`
|
||||
await writeCodeFile(
|
||||
'scripts/refresh-assets.ts',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue