typescript-declarations Questions
1
My intention is to bundle TypeScript definitions of TS code written by myself with definitions of external modules residing in node_modules. The reasoning behind is that I need to supply these join...
Catling asked 8/1, 2022 at 10:17
1
Solved
I'm writing an interview question. I'm mocking a backend server by creating an "Http Client" package. Some of my types I want exposed in .d.ts files so that the interviewee has context, b...
Hobbema asked 2/10, 2021 at 18:3
2
Solved
I am getting the
Jsx is used without importing react
Notification by WebStorm even tho I made react library global via:
My webpack.config.js
plugins: [
new webpack.ProvidePlugin({
React:...
Biparietal asked 12/12, 2019 at 8:27
2
I am trying to emit declarations for types and functions annotated with JSDoc. Those are useful for TypeScript users and generating them from JSDoc means less overhead on our SDK developers.
TypeS...
Hypnotherapy asked 2/1, 2020 at 13:52
3
Solved
In lodash, the _.invert function inverts an object's keys and values:
var object = { 'a': 'x', 'b': 'y', 'c': 'z' };
_.invert(object);
// => { 'x': 'a', 'y': 'b', 'z': 'c' }
The lodash typin...
Revere asked 2/6, 2019 at 14:10
1
Solved
I have a Typescript/JavaScript hybrid project and I'm creating declaration d.ts files for some of the JavaScript files in order to aid in the management of multiple classes and subclasses.
However...
Mighty asked 4/1, 2018 at 16:45
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...
Catalan asked 24/10, 2017 at 18:0
1
© 2022 - 2025 — McMap. All rights reserved.