Answer the question
In order to leave comments, you need to log in
Typescript: how to properly type an object and how to properly validate window.jQuery?
Today I started looking at typescript, 2 questions appeared:
1)
There is a code
class Static {
static object: Object = {
abc: <string>'abc',
number: <number>123
};
}
console.log(Static.object.abc);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question