Deprecate assert in import() by jakebailey · Pull Request #63172 · microsoft/TypeScript
tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts
Updated import type syntax from
assert to with
tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmit1.ts
Updated import type syntax from assert to with
tests/cases/conformance/moduleResolution/resolutionModeImportType1.ts
Updated import type syntax from assert to with
tests/cases/compiler/parseAssertEntriesError.ts
Updated import type syntax from assert to with
tests/cases/compiler/importTypeAssertionDeprecationIgnored.ts
New test file verifying ignoreDeprecations: "6.0" suppresses the warning
tests/cases/compiler/importTypeAssertionDeprecation.ts
New test file demonstrating the deprecation warning for assert usage
tests/baselines/reference/*.types
Updated baseline files reflecting the syntax changes
tests/baselines/reference/*.symbols
Updated baseline files reflecting the syntax changes
tests/baselines/reference/*.errors.txt
Updated baseline files showing new deprecation errors for assert usage
tests/baselines/reference/*.js
Updated baseline files with emitted JavaScript output
src/compiler/checker.ts
Added deprecation check for assert keyword in import type expressions