Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

asymmetricMatchers.d.ts 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. */
  8. export declare class AsymmetricMatcher<T> {
  9. protected sample: T;
  10. $$typeof: symbol;
  11. inverse?: boolean;
  12. constructor(sample: T);
  13. }
  14. declare class Any extends AsymmetricMatcher<any> {
  15. constructor(sample: unknown);
  16. asymmetricMatch(other: unknown): boolean;
  17. toString(): string;
  18. getExpectedType(): string;
  19. toAsymmetricMatcher(): string;
  20. }
  21. declare class Anything extends AsymmetricMatcher<void> {
  22. asymmetricMatch(other: unknown): boolean;
  23. toString(): string;
  24. toAsymmetricMatcher(): string;
  25. }
  26. declare class ArrayContaining extends AsymmetricMatcher<Array<unknown>> {
  27. constructor(sample: Array<unknown>, inverse?: boolean);
  28. asymmetricMatch(other: Array<unknown>): boolean;
  29. toString(): string;
  30. getExpectedType(): string;
  31. }
  32. declare class ObjectContaining extends AsymmetricMatcher<Record<string, unknown>> {
  33. constructor(sample: Record<string, unknown>, inverse?: boolean);
  34. asymmetricMatch(other: any): boolean;
  35. toString(): string;
  36. getExpectedType(): string;
  37. }
  38. declare class StringContaining extends AsymmetricMatcher<string> {
  39. constructor(sample: string, inverse?: boolean);
  40. asymmetricMatch(other: string): boolean;
  41. toString(): string;
  42. getExpectedType(): string;
  43. }
  44. declare class StringMatching extends AsymmetricMatcher<RegExp> {
  45. constructor(sample: string | RegExp, inverse?: boolean);
  46. asymmetricMatch(other: string): boolean;
  47. toString(): string;
  48. getExpectedType(): string;
  49. }
  50. export declare const any: (expectedObject: unknown) => Any;
  51. export declare const anything: () => Anything;
  52. export declare const arrayContaining: (sample: Array<unknown>) => ArrayContaining;
  53. export declare const arrayNotContaining: (sample: Array<unknown>) => ArrayContaining;
  54. export declare const objectContaining: (sample: Record<string, unknown>) => ObjectContaining;
  55. export declare const objectNotContaining: (sample: Record<string, unknown>) => ObjectContaining;
  56. export declare const stringContaining: (expected: string) => StringContaining;
  57. export declare const stringNotContaining: (expected: string) => StringContaining;
  58. export declare const stringMatching: (expected: string | RegExp) => StringMatching;
  59. export declare const stringNotMatching: (expected: string | RegExp) => StringMatching;
  60. export {};