Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

generic interface in typescript

shahul answered on June 16, 2022 Popularity 9/10 Helpfulness 3/10

Contents


More Related Answers

  • typescript valueof interface
  • make an interface iterator typescript
  • interface with variable key typescript
  • constructor interface typescript
  • generic interfaces
  • typescript class interface
  • typescript pick type from interface
  • generic in typescript
  • typescript interface function
  • what is an interface typescript
  • typescript type interface
  • Typescript method generic type
  • Typescript Basic Generics
  • typescript interface
  • generic typescript
  • typescript generic type
  • typescript dynamic interface
  • class constructor in typescript interface
  • typescript interface
  • typescript object of type interface
  • typescript interface
  • typescript new instance of interface
  • typescript typeof interface property
  • create method in interface for set TS
  • Generic type - interfaces
  • generic functional interfaces
  • interface ts one valu

  • generic interface in typescript

    1

    interface IObject<Type> {

      [x:string]: Type;

    };

    const stringObj:IObject<string> = {

      a: 'b',

      c: 1 // will give error

    };

    Popularity 9/10 Helpfulness 3/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 17 2023
    shahul
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0
    Popularity 10/10 Helpfulness 3/10 Language typescript
    Link to this answer
    Share Copy Link
    Contributed on Jun 16 2022
    Dulinniel
    0 Answers  Avg Quality 2/10

    0
    Popularity 7/10 Helpfulness 2/10 Language typescript
    Link to this answer
    Share Copy Link
    Contributed on Nov 03 2023
    Uninterested Unicorn
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.