Skip to content

Tighten type config from TS “5.x” > “6.x” change.#358

Merged
theengineear merged 1 commit intomainfrom
tighten-some-type-checks
Mar 26, 2026
Merged

Tighten type config from TS “5.x” > “6.x” change.#358
theengineear merged 1 commit intomainfrom
tighten-some-type-checks

Conversation

@theengineear
Copy link
Copy Markdown
Collaborator

The “strict” config setting is now the default in TypeScript “6.x”. We had to disable some of those configuration options to ensure we passed our type check as part of that migration.

However, we ultimately should aim to pass this new default bar. This change set fixes some of the low-hanging fruit here.

The “strict” config setting is now the default in TypeScript “6.x”. We
had to disable some of those configuration options to ensure we passed
our type check as part of that migration.

However, we ultimately should aim to pass this new default bar. This
change set fixes some of the low-hanging fruit here.
Comment thread types/x-element.d.ts
reflect?: boolean;
internal?: boolean;
readOnly?: boolean;
attribute?: string | undefined;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just TS being additionally verbose know that we removed one of our checks. It would only impact consumers that explicitly set exactOptionalPropertyTypes from my understanding.

Comment thread types/x-template.d.ts
@@ -1,3 +1,3 @@
export const render: (...args: unknown[]) => unknown;
export const html: (...args: unknown[]) => unknown;
export const render: (container: HTMLElement, rawResult: unknown) => void;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually correct now.

Comment thread tsconfig.json
"useUnknownInCatchVariables": false,
"strictFunctionTypes": false
// TODO: #357: Fix implicit any types.
"noImplicitAny": false
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more left. This one is the biggie though.

@theengineear
Copy link
Copy Markdown
Collaborator Author

Just doing some work to get us back to a clean config state.

@theengineear theengineear merged commit d7561b1 into main Mar 26, 2026
1 check passed
@theengineear theengineear deleted the tighten-some-type-checks branch March 26, 2026 16:37
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.

1 participant