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
  • class constructor in typescript interface
  • Typescript method generic type
  • Typescript Basic Generics
  • typescript generic type
  • generic typescript
  • typescript interface
  • typescript dynamic interface
  • typescript interface
  • typescript generic
  • 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

  • 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 8/10 Helpfulness 2/10 Language typescript
    Tags: interface inte
    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.