1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Convert 27 JavaScript files to TypeScript (#57693)

This commit is contained in:
Kevin Heis
2025-09-30 13:44:12 -07:00
committed by GitHub
parent 647e0dca2a
commit 501e2512d7
31 changed files with 374 additions and 176 deletions

View File

@@ -2,7 +2,7 @@ import { schema } from '@/frame/lib/frontmatter'
// Some learning tracks have `versions` blocks that match `versions` frontmatter,
// so we can import that part of the FM schema.
const versionsProps = Object.assign({}, schema.properties.versions)
const versionsProps = Object.assign({}, (schema.properties as any).versions)
// `versions` are not required in learning tracks the way they are in FM.
delete versionsProps.required