Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve TS developer experience #441

Merged
merged 20 commits into from
Feb 15, 2023
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e30994b
feat(ts): Add Strict type flag for Document
eemeli Feb 12, 2023
edd9cdd
test: Convert tests/doc/anchors from JS to TS
eemeli Feb 12, 2023
2aced1c
fix(ts): Add undefined & Date handling to NodeType<T>
eemeli Feb 12, 2023
837bc32
test: Convert tests/doc/createNode from JS to TS
eemeli Feb 12, 2023
90ac31b
test: Convert tests/doc/errors from JS to TS
eemeli Feb 12, 2023
7e6b35c
fix(ts): Export FoldOptions from yaml/util
eemeli Feb 12, 2023
6e52136
test: Convert tests/doc/foldFlowLines from JS to TS
eemeli Feb 12, 2023
81b0f0a
test: Convert tests/doc/YAML-1.2.spec from JS to TS
eemeli Feb 12, 2023
90074bb
test: Convert tests/doc/YAML-1.1.spec from JS to TS
eemeli Feb 12, 2023
d0a1a55
test: Convert tests/doc/comments from JS to TS
eemeli Feb 12, 2023
d7ff81b
test: Fix remaining TS bugs & add test type checks to test:types script
eemeli Feb 12, 2023
8f6e75e
feat(ts): Add <Contents, Strict> generic types to Composer
eemeli Feb 12, 2023
0f1c7f0
test: Convert tests/doc/parse from JS to TS
eemeli Feb 12, 2023
d82e9b9
test: Convert tests/doc/stringify from JS to TS
eemeli Feb 12, 2023
c7cc418
test: Convert tests/doc/types from JS to TS
eemeli Feb 12, 2023
82fde88
chore: Update ESLint & TS configs for tests
eemeli Feb 12, 2023
52ce17a
chore: Drop support for TS 3.8 & add note to docs
eemeli Feb 13, 2023
f0a4afa
ci: Fix types for older TS versions
eemeli Feb 13, 2023
2489810
chore(ts): Use package.json typesVersions to find d.ts files from dist/
eemeli Feb 13, 2023
8407300
fix: Avoid polynomial regexp in stringifyString
eemeli Feb 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: Convert tests/doc/YAML-1.1.spec from JS to TS
  • Loading branch information
eemeli committed Feb 12, 2023
commit 90074bb7b5a219661d38113b24ab138476340ab1
2 changes: 1 addition & 1 deletion tests/doc/YAML-1.1.spec.js → tests/doc/YAML-1.1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('Use preceding directives if none defined', () => {
!bar "Using previous YAML directive"
`
const docs = parseAllDocuments(src, { prettyErrors: false, version: '1.1' })
const warn = tag => ({ message: `Unresolved tag: ${tag}` })
const warn = (tag: string) => ({ message: `Unresolved tag: ${tag}` })
expect(docs).toMatchObject([
{
directives: { yaml: { version: '1.1', explicit: false } },
Expand Down