typescript tag

71 questions


1 answers
464 views
0
I want to pick the nested type in the Vue Router.

I want to take only matched meta from the vue-router Route type.Specifically, I was able to take out the matched as below, but I don't know how to take out only meta and get an error.I would appreciat...

1 years ago

1 answers
341 views
0
Stripe's paymentIntent.status is not well typed.

I am typing the official sample code of strip, but an error is printed.I am using a type annotation, but how should I guess the type here?Error Contents (parameter) paymentIntent: anyArgument of type'...


1 answers
392 views
0
I want to type the sample code of strip.js, but I don't know how to guess the type.

I saw in the document that react-stripe-js itself supports TypeScript, but I don't know how to guess what type I installed. I saw an article like CardElementComponent and import, and the consthandleCh...

1 years ago

1 answers
213 views
0
Understanding How Angular-Scully Plug-ins Reflect Config objects

I'm trying to launch a blog as a static site using Angular and Scully modules.I implemented the automatic generation of archive pages as a plug-in, but the setConfig function may not work well.Learn h...


1 answers
403 views
0
Nxt.js (Vue.js) + typescript code has some incomprehensible parts

<nuxt-link> and some code using the to attribute did not make sense, so I would like to ask you a question.Below is the nuxt-link.Bind the to attribute and pass the to (argument 1, argument 2).&...


1 answers
411 views
0
Recruiting a good way to write TypeScript that defines the type of HH/MM as '01' | '02' | '03' | ... | '60'

time{ HH:string MM:string}Assume that there are objects such as , and that HH and MM are retrieved from the API as strings.I would like HH and MM to be able to substitute only the zero embedded string...

1 years ago

1 answers
407 views
0
Pastebin always returns 422

I registered my account with Pastebin and tried to use the API, but Bad API request, invalid api_dev_key shows no sign of success.The API key does not contain spaces, and I copied them from the page, ...

1 years ago

1 answers
56 views
0
How to Remove the Promise Hoge

Please let me know if there is a site that explains how to use Promise<>.There is a function called hogeFunction, which returns Promise<T>.I'd like to use the value of type T for this func...

1 years ago

1 answers
93 views
0
How to write a definition for circular reference in TypeScript

If you define the following in Typescript: class A { public b —A.B.}namespace A { classB{ }}By classA definition [ts] No exported member 'B' exists in namespace 'A'. I get scolded, and if you reverse ...


2 answers
88 views
0
How do I consolidate multiple TypeScript files in Angular 2?

If you look at the Angular2 formula tutorial 3, you will find the following four .ts files.app.component.tsboot.tshero.tshero-detail.component.tsFor example, if you look at app.component.ts, you can i...

1 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.