Blame view

天文台pc/tianwentai-ui/node_modules/fast-equals/dist/umd/index.d.ts 2.25 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  import type { CustomEqualCreatorOptions } from './internalTypes.js';
  import { sameValueZeroEqual } from './utils.js';
  export { sameValueZeroEqual };
  export type { AnyEqualityComparator, Cache, CircularState, ComparatorConfig, CreateCustomComparatorConfig, CreateState, CustomEqualCreatorOptions, DefaultState, Dictionary, EqualityComparator, EqualityComparatorCreator, InternalEqualityComparator, PrimitiveWrapper, State, TypeEqualityComparator, TypedArray, } from './internalTypes.js';
  /**
   * Whether the items passed are deeply-equal in value.
   */
  export declare const deepEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Whether the items passed are deeply-equal in value based on strict comparison.
   */
  export declare const strictDeepEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Whether the items passed are deeply-equal in value, including circular references.
   */
  export declare const circularDeepEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Whether the items passed are deeply-equal in value, including circular references,
   * based on strict comparison.
   */
  export declare const strictCircularDeepEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Whether the items passed are shallowly-equal in value.
   */
  export declare const shallowEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Whether the items passed are shallowly-equal in value based on strict comparison
   */
  export declare const strictShallowEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Whether the items passed are shallowly-equal in value, including circular references.
   */
  export declare const circularShallowEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Whether the items passed are shallowly-equal in value, including circular references,
   * based on strict comparison.
   */
  export declare const strictCircularShallowEqual: <A, B>(a: A, b: B) => boolean;
  /**
   * Create a custom equality comparison method.
   *
   * This can be done to create very targeted comparisons in extreme hot-path scenarios
   * where the standard methods are not performant enough, but can also be used to provide
   * support for legacy environments that do not support expected features like
   * `RegExp.prototype.flags` out of the box.
   */
  export declare function createCustomEqual<Meta = undefined>(options?: CustomEqualCreatorOptions<Meta>): <A, B>(a: A, b: B) => boolean;