41 lines
643 B
TypeScript
Raw Normal View History

2023-03-07 22:55:30 +08:00
/*
* @Author: Kane
* @Date: 2023-03-02 15:48:44
* @LastEditors: Kane
* @FilePath: /task_schedule/src/test/test.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
2023-03-17 18:53:13 +08:00
import { queryDepartmentArchievement } from "../utils/archievement.js";
2023-03-31 18:07:06 +08:00
interface Cat
{
name: string;
purrs: boolean;
2023-03-31 23:58:41 +08:00
}
2023-03-31 18:07:06 +08:00
interface Dog
{
// name: string;
barks: true;
wags: true;
}
type CatOrDog = Cat | Dog;
const animal: CatOrDog =
{
name: "kaka",
purrs: true,
barks: true,
wags: true,
};
2023-03-31 20:25:01 +08:00
console.log( "test" );
2023-03-31 23:41:03 +08:00
2023-04-04 17:58:05 +08:00
const gainers: Array<string | number> = ["kane", 588,];
2023-03-31 23:41:03 +08:00
const kane = { a: 100, b: 200, };