@lls/typings 24.1.33 → 24.1.34-09e21c16

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.
@@ -13,12 +13,11 @@ export type Rect = {
13
13
 
14
14
  export type ZoneType = {
15
15
  id: string
16
- src?: string
17
16
  } & Rect
18
17
 
19
18
  export type ZoomZoneType = ZoneType & { type: Extract<SubzoneTypeCategory, 'subZone'> }
20
- export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'> }
21
- export type PicWordType = ZoneType & { type: Extract<SubzoneTypeCategory, 'picWord'>; word?: string }
19
+ export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'>; src?: string }
20
+ export type PicWordType = ZoneType & { type: Extract<SubzoneTypeCategory, 'picWord'>; word?: string; src?: string }
22
21
 
23
22
  export type SubZoneType = ZoomZoneType | DefinitionsType | PicWordType
24
23
 
@@ -28,7 +27,6 @@ export type DocJson<T extends 'primary' | 'default' = 'default'> = {
28
27
  contentMd?: string
29
28
  } & (T extends 'primary'
30
29
  ? {
31
- src?: string
32
30
  picWords?: PicWordType[]
33
31
  definitions?: DefinitionsType[]
34
32
  subZones?: ZoomZoneType[]
@@ -22,7 +22,8 @@ export type User = {
22
22
  passwordUpdateRequired?: boolean
23
23
  confirmed?: boolean
24
24
  userPages?: number[] | null
25
- schoolTypes?: SchoolTypeName[]
25
+ schoolTypes?: SchoolTypeName[] | null
26
+ hasContentNewsletter?: boolean | null
26
27
  }
27
28
 
28
29
  export type AdminUser = User & { isAdmin: true }
@@ -1,5 +1,9 @@
1
1
  declare module 'html-to-react' {
2
- import type { Element as DomHandlerElement, Node as DomHandlerNode, DomElement as DomHandlerDomElement } from 'domhandler'
2
+ import type {
3
+ Element as DomHandlerElement,
4
+ Node as DomHandlerNode,
5
+ DomElement as DomHandlerDomElement
6
+ } from 'domhandler'
3
7
  // TODO: Element is clearly inaccurate. It misses accessors like tagName, attributes
4
8
 
5
9
  export type Node = DomHandlerNode
@@ -1,3 +1,4 @@
1
+ import type { AnyFunction } from '@typings/utils'
1
2
  import type lo from 'lodash'
2
3
  import type _ from 'lodash/fp'
3
4
  import type { ValueOf } from '../utils.d.ts'
@@ -5,14 +6,27 @@ import type { ValueOf } from '../utils.d.ts'
5
6
  declare module 'lodash/fp.js' {
6
7
  interface LodashMap {
7
8
  convert: (a: { cap: false }) => <Iterable, TResult>(
8
- iteratee: (value: Iterable extends Array<infer T> ? T : ValueOf<Iterable>, idx: Iterable extends any[] ? number : keyof Iterable) => TResult,
9
+ iteratee: (
10
+ value: Iterable extends Array<infer T> ? T : ValueOf<Iterable>,
11
+ idx: Iterable extends any[] ? number : keyof Iterable
12
+ ) => TResult,
9
13
  collection: Iterable
10
14
  ) => TResult[]
11
15
  }
16
+ interface LodashDebounce {
17
+ convert: (options: { fixed: false }) => <T extends AnyFunction>(
18
+ delay: number,
19
+ fn: T,
20
+ opts: { leading?: boolean; trailing?: boolean }
21
+ ) => T
22
+ }
12
23
 
13
24
  interface LodashForEach {
14
25
  convert: (a: { cap: false }) => <Iterable, TResult>(
15
- iteratee: (value: Iterable extends Array<infer T> ? T : ValueOf<Iterable>, idx: Iterable extends any[] ? number : keyof Iterable) => TResult,
26
+ iteratee: (
27
+ value: Iterable extends Array<infer T> ? T : ValueOf<Iterable>,
28
+ idx: Iterable extends any[] ? number : keyof Iterable
29
+ ) => TResult,
16
30
  collection: Iterable
17
31
  ) => void
18
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.1.33",
3
+ "version": "24.1.34-09e21c16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],