Skip to content

Commit b4e33ff

Browse files
committed
Revert "ts: enable strict null checks"
This reverts commit 99ae8a2.
1 parent b36ea1f commit b4e33ff

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { FeathersVuex } from './vue-plugin/vue-plugin'
3434
import { ServiceState } from './service-module/service-module.state'
3535
const events = ['created', 'patched', 'updated', 'removed']
3636

37-
const defaults: Required<FeathersVuexOptions> = {
37+
const defaults: FeathersVuexOptions = {
3838
autoRemove: false, // Automatically remove records missing from responses (only use with feathers-rest)
3939
addOnUpsert: false, // Add new records pushed by 'updated/patched' socketio events into store, instead of discarding them
4040
enableEvents: true, // Listens to socket.io events when available
@@ -82,7 +82,7 @@ export default function feathersVuex(feathers, options: FeathersVuexOptions) {
8282

8383
addClient({ client: feathers, serverAlias: options.serverAlias })
8484

85-
const BaseModel = makeBaseModel(options as Required<FeathersVuexOptions>)
85+
const BaseModel = makeBaseModel(options)
8686
const makeServicePlugin = prepareMakeServicePlugin(options)
8787
const makeAuthPlugin = prepareMakeAuthPlugin(feathers, options)
8888

src/service-module/make-base-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function assertIsEventEmitter(val: unknown): asserts val is EventEmitter {
5252
*
5353
* @param options
5454
*/
55-
export default function makeBaseModel(options: Required<FeathersVuexOptions>) {
55+
export default function makeBaseModel(options: FeathersVuexOptions) {
5656
const addModel = prepareAddModel(options)
5757
const { serverAlias } = options
5858
type D = {}

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"moduleResolution": "node",
77
"target": "es6",
88
"sourceMap": false,
9-
"declaration": true,
10-
"strictNullChecks": true
9+
"declaration": true
1110
},
1211
"include": ["src/**/*"],
1312
"exclude": ["node_modules", "**/*.test.js"]

0 commit comments

Comments
 (0)