修改一些javascript的语法错误。
This commit is contained in:
@@ -37,14 +37,5 @@ class CpicximStuff
|
||||
}
|
||||
};
|
||||
|
||||
class A
|
||||
{
|
||||
public static _x: string = "A";
|
||||
}
|
||||
|
||||
class B extends A
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
export { CpicximStuff, A, B };
|
||||
export { CpicximStuff };
|
@@ -1,3 +1,13 @@
|
||||
/*
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-21 17:39:01
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-22 14:08:48
|
||||
* @FilePath: /后端辅助工具/src/DataType/Template.ts
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
|
||||
interface Point
|
||||
{
|
||||
@@ -5,9 +15,9 @@ interface Point
|
||||
y: number;
|
||||
}
|
||||
|
||||
function radius<TPoint>(): TPoint
|
||||
function radius<TPoint>(x: TPoint): TPoint
|
||||
{
|
||||
result: TPoint;
|
||||
const result: TPoint = x;
|
||||
|
||||
return result;
|
||||
}
|
@@ -13,10 +13,10 @@
|
||||
"outDir": "./target",
|
||||
"strict": false,
|
||||
"strictNullChecks": true,
|
||||
"strictPropertyInitialization":true,
|
||||
"strictPropertyInitialization": true,
|
||||
"sourceMap": true,
|
||||
"allowJs": true,
|
||||
"checkJs": false,
|
||||
"checkJs": true,
|
||||
"moduleResolution": "node",
|
||||
"module": "CommonJS",
|
||||
"target": "ES2015"
|
||||
|
Reference in New Issue
Block a user