typescript-definitions Questions

4

In the Typescript definition file (DefinitelyTyped) I am examining, there is an interface, a function and a namespace all with the exact same name: twilio. Here is the sample, from the first few li...

1

Solved

I'm writing typescript definitions for a Javascript API with a deprecated method. Here's an extract of the documentation (they say API but it's just about this single method): This API has no effe...

2

Solved

I got below TypeScript error when tried to use side component (outside of project directory): TS2345: Argument of type '{ template: string; components: { SimpleCheckbox: typeof SimpleCheckbox; }; }...

1

Solved

I crafted some classes and modules in TypeScript. Other TypeScript apps can use the TS files directly without needing type definitions. However, to publish to npm, I guess I need to publish both JS...
Tsarevna asked 14/9, 2018 at 5:8

1

I'm trying to use the @types/googlemaps type definition file. The code looks like declare namespace google.maps { /***** Map *****/ export class Map extends MVCObject { constructor(mapDiv: E...
Denominationalism asked 15/12, 2017 at 4:59

0

Background I have created a component library using react (plain js). I am in the process of creating Typescript definitions for the components so that consumers of the component library can use t...
Jarv asked 7/3, 2018 at 11:18

1

Solved

I have a Node application that depends on @types/hapi. I'd like to add a property to one of the classes defined in this module. I've tried defining my new property via module augmentation: // my-c...
1

© 2022 - 2024 — McMap. All rights reserved.