@types/knockout 3.4.75 → 3.4.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
knockout/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for knockout (http://knockoutjs.com).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 07 Nov 2023 09:09:38 GMT
11
+ * Last updated: Wed, 22 Nov 2023 00:24:48 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
knockout/index.d.ts CHANGED
@@ -247,11 +247,11 @@ interface KnockoutObservableArrayStatic {
247
247
  * casting an observable array to this type expresses the intention that it shouldn't be mutated.
248
248
  */
249
249
  interface KnockoutReadonlyObservableArray<T>
250
- extends KnockoutReadonlyObservable<ReadonlyArray<T>>, KnockoutReadonlyObservableArrayFunctions<T>
250
+ extends KnockoutReadonlyObservable<readonly T[]>, KnockoutReadonlyObservableArrayFunctions<T>
251
251
  {
252
252
  // NOTE: Keep in sync with KnockoutObservableArray<T>, see note on KnockoutObservableArray<T>
253
253
  subscribe(
254
- callback: (newValue: KnockoutArrayChange<T>[]) => void,
254
+ callback: (newValue: Array<KnockoutArrayChange<T>>) => void,
255
255
  target: any,
256
256
  event: "arrayChange",
257
257
  ): KnockoutSubscription;
@@ -267,7 +267,7 @@ interface KnockoutReadonlyObservableArray<T>
267
267
  */
268
268
  interface KnockoutObservableArray<T> extends KnockoutObservable<T[]>, KnockoutObservableArrayFunctions<T> {
269
269
  subscribe(
270
- callback: (newValue: KnockoutArrayChange<T>[]) => void,
270
+ callback: (newValue: Array<KnockoutArrayChange<T>>) => void,
271
271
  target: any,
272
272
  event: "arrayChange",
273
273
  ): KnockoutSubscription;
@@ -390,7 +390,7 @@ interface KnockoutAllBindingsAccessor {
390
390
  }
391
391
 
392
392
  interface KnockoutBindingHandler<E extends Node = any, V = any, VM = any> {
393
- after?: Array<string> | undefined;
393
+ after?: string[] | undefined;
394
394
  init?:
395
395
  | ((
396
396
  element: E,
@@ -398,6 +398,7 @@ interface KnockoutBindingHandler<E extends Node = any, V = any, VM = any> {
398
398
  allBindingsAccessor: KnockoutAllBindingsAccessor,
399
399
  viewModel: VM,
400
400
  bindingContext: KnockoutBindingContext,
401
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
401
402
  ) => void | { controlsDescendantBindings: boolean })
402
403
  | undefined;
403
404
  update?:
knockout/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/knockout",
3
- "version": "3.4.75",
3
+ "version": "3.4.77",
4
4
  "description": "TypeScript definitions for knockout",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout",
6
6
  "license": "MIT",
@@ -60,6 +60,6 @@
60
60
  },
61
61
  "scripts": {},
62
62
  "dependencies": {},
63
- "typesPublisherContentHash": "6c113ee0ea90241c18014e3069ea113d63b7628b22ba655fb818b7749083666d",
63
+ "typesPublisherContentHash": "db4bee3f7e871345efd692e2bbce593bb3839a4a720f9eeedc2a31bc4538c6c2",
64
64
  "typeScriptVersion": "4.5"
65
65
  }