71 questions
We are building an environment to test TypeScript alone with jest, but we do not know what to do with the following error.ttests/index.test.ts は is empty.FAIL tests/index.test.ts ● Test suite failed t...
How can I write the code below in typescript?export default class Auth extensions Vue {public rules: { username : Array < string | boolean > , password : Array < string > } = {// I don't k...
When I tried to run the following code in TypeScriptPlayground, testFunc(a);However, there was a type error because a could be null.In order to resolve this type error, I would like to write something...
I write code in vsocde with vue3 and typescript.If you try to move the value from obj to itemObj after specifying the type with the following code, you get an error:typeObj={ Timeline: { Items—ItemsOb...
Please tell me how to pull the hierarchy inside the associative array.type Outside={ key: { a: number; b:string; }}// I want to create an inside type from an outside type key (the outside type must no...
I am making a screen with Angular.In a component of a screen,class Sub{ constructor( aaa —string, bbb —string, ccc:string ) {}}Import the above class and get a response from the API for this type s...
With rails at the back end and react/typescript at the front, we would like to implement the streaming playback feature using react-player and hls.js.Currently, I use a video tag to retrieve mp4 from ...
Followed the ElectronForge page and installed the Electron template using the following command:npx create-electron-app my-new-app --template=typescript-webpackNext is npm run startWhen you run , an e...
In the code below, the object may be 'undefined'.ts(2532)Also, there is an error in the test[i].v part, but I don't know the cause at all.Is there any way to avoid writing code?//test.tstypeTestArray=...
For learning, I am creating a chess application that works with a browser using React+Typescript.The movement of a piece was able to move as I expected, but the method I made when I tried to implement...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.