Skip to content

Commit

Permalink
Fix errors with TS 5.5, switch typescript to '~' dependency specifier…
Browse files Browse the repository at this point in the history
… since TypeScript doesn't use semver

- Remove noImplicitUseStrict compiler flag, since TS 5.5 no longer supports it

- Put preserve="true" on triple-slash reference directives used to load types for server-only model methods, since TS 5.5 strips the directives without the new preserve attribute
  • Loading branch information
ericyhwang committed Jul 22, 2024
1 parent 669dc87 commit cd397f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"typedoc": "^0.25.13",
"typedoc-plugin-mdn-links": "^3.1.28",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "^5.1.3"
"typescript": "~5.5"
},
"bugs": {
"url": "https://github.com/derbyjs/racer/issues"
Expand Down
4 changes: 2 additions & 2 deletions src/Model/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference path="./bundle.ts" />
/// <reference path="./connection.server.ts" />
/// <reference path="./bundle.ts" preserve="true" />
/// <reference path="./connection.server.ts" preserve="true" />

import { serverRequire } from '../util';
export { Model, ChildModel, RootModel, type ModelOptions, type UUID, type DefualtType } from './Model';
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"compilerOptions": {
"allowJs": true,
"ignoreDeprecations": "5.0",
"lib":[],
"module": "CommonJS",
"noImplicitUseStrict": true,
"outDir": "lib",
"target": "ES5",
"sourceMap": false,
Expand Down

0 comments on commit cd397f6

Please sign in to comment.