YT
Size: a a a
YT
KY
YT
B
V
V
Дп
B
VZ
EO
(): void
export interface Meter extends Value {
(): void;
}
TS
(): void
export interface Meter extends Value {
(): void;
}
E
EO
EO
EO
EO
TS
interface ILog {
(value: string): void;
}
// same as
// type ILog = (value: string) => void;
const log: ILog = (value) => {
console.log(value);
};
log('Hello world');
EO
interface ILog {
(value: string): void;
}
// same as
// type ILog = (value: string) => void;
const log: ILog = (value) => {
console.log(value);
};
log('Hello world');
interface Value {
(value: number): void;
toJSON(): any;
}