Log in Sign up
4 Matching Annotations
  1. Sep 2020
  2. github.com github.com
    jquense/yup
    1
    1. TylerRick 16 Sep 2020
      in Public
      You can derive the TypeScript type as follows: type Person = yup.InferType<typeof personSchema>;
      TypeScript: infer
    Visit annotations in context

    Tags

    • TypeScript: infer

    Annotators

    • TylerRick

    URL

    github.com/jquense/yup
  3. Apr 2020
  4. wanago.io wanago.io
    TypeScript type inference with const assertions and the infer keyword
    1
    1. eureka 15 Apr 2020
      in Public
      Introducing the infer keyword

      介绍 infer关键字,待细究

      TypeScript infer
    Visit annotations in context

    Tags

    • TypeScript
    • infer

    Annotators

    • eureka

    URL

    wanago.io/2020/03/16/typescript-type-inference-with-const-assertions-and-the-infer-keyword/
  5. Oct 2019
  6. www.typescriptlang.org www.typescriptlang.org
    Interfaces · TypeScript
    2
    1. TylerRick 24 Oct 2019
      in Public
      type ReturnType<T extends AnyFunction> = T extends (...args: any[]) => infer R ? R : any;
      TypeScript: infer TypeScript: interesting example
    2. TylerRick 24 Oct 2019
      in Public
      infer declarations that introduce a type variable to be inferred
      TypeScript: infer
    Visit annotations in context

    Tags

    • TypeScript: infer
    • TypeScript: interesting example

    Annotators

    • TylerRick

    URL

    typescriptlang.org/docs/handbook/2/objects.html
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy