Category "typescript"

How can we create a custom jquery plugin using typescript?

I need to use a jquery custom plugin in my application and how can i create a custom jquery plugin using typescript. I have googled a lot and i just got below l

Test fails with "TypeError: theme.spacing is not a function" after migration from MUI v4 to v5

Have design system created/customized with MUI v4. Decided to update to V5 using this manual. All steps are done (with codemods and manual fixes), except moving

What does the pipe(|) mean in typescript?

While browsing some typescript code of @ng-bootstrap I have found pipe(|) operator. export declare const NGB_PRECOMPILE: (typeof NgbAlert | typeof NgbTooltipW

How can I create an unlimited range for cloud functions?

I'm creating a cloud function to read a google spreadsheets and I want that use an unlimited range. It´s that possible? The idea is read the Google spread

What does the pipe(|) mean in typescript?

While browsing some typescript code of @ng-bootstrap I have found pipe(|) operator. export declare const NGB_PRECOMPILE: (typeof NgbAlert | typeof NgbTooltipW

Filter undefined from RxJS Observable

Is there a specific idiom or utility used to filter undefined from RxJS observables? This code has the behavior I want: obs.pipe(filter(x => x !== undefined)

Filter undefined from RxJS Observable

Is there a specific idiom or utility used to filter undefined from RxJS observables? This code has the behavior I want: obs.pipe(filter(x => x !== undefined)

Understanding TypeScript template literal type with `${any}${any}`

Can someone explain why this: type NotEmpty<T extends string> = T extends `${any}${any}` ? T : never; declare function something<T extends string>(

src/index.ts:1:1 - error TS6133: 'functions' is declared but its value is never read

While trying to follow the Add Firebase to your JavaScript project on an empty git repository that will be used for a TypeScript project, I got the following er

Playwright before each for all spec files

I very new to Playwright. Due to my test suites, I need to login into my application before running each test. Inside a single spec file that is easy, I can sim

How to run an Inferno project?

Hi I am trying to run this github project https://github.com/LemmyNet/lemmy-ui How do I run it? I tried using npm start it says yarn not found.

Must use import to load ES Module while updating angular

I ran into this problem while trying to upgrading from angular 6 to 8, whenever i try to ng serve or ng build i get the following error: its been so fustrating,

React-Redux useSelector typescript type for state

I'm using the useSelector(state => state.SLICE_NAME) hook from React-Redux however I'm having difficulty defining the state parameter. It is set by default a

Visual Studio 2022 - for typescript files Intellisense not working

I have a problem with the Intellisense on Typescript files in Visual Studio 2022 (on 2019 I didn't have this issue). From time to time the Intellisense stops wo

tsc throws `TS2307: Cannot find module` for a local file

I've got a simple example project using TypeScript: https://github.com/unindented/ts-webpack-example Running tsc -p . (with tsc version 1.8.10) throws the foll

error TS6059: File is not under 'rootDir' .. 'rootDir' is expected to contain all source files

I am getting this fairly non-sensical tsc transpilation error: error TS6059: File '/Users/alex/codes/interos/teros-cli/src/logging.ts' is not under 'roo

checkbox for select all checkboxes in angular primeng table

When I click on the checkbox in the table header. Then all the checkboxes in the table should be checked. Currently, I'm using angular 12 and primeNG table. <

TypeScript get Svelte component's prop type

Let's say you are using a component that has been imported from elsewhere <Animal species={animalSpecies} /> // species has a specific type and you want t

Typescript complains Property does not exist on type 'JSX.IntrinsicElements' when using React.createClass?

I am using typescript to write redux application. var item = React.createClass({ render: function() { return (<div>hello world</div>) } });

How do I Determine The Number Of Days In A Month from a particular date in angularjs 2?

I am using angularjs 2 and type script. I want the number of days in a month from a particular date given by user. How do I Determine that? Please help. Thanks