保存进度!
This commit is contained in:
@@ -9,3 +9,26 @@
|
||||
*/
|
||||
|
||||
import { queryDepartmentArchievement } from "../utils/archievement.js";
|
||||
|
||||
interface Cat
|
||||
{
|
||||
name: string;
|
||||
purrs: boolean;
|
||||
};
|
||||
|
||||
interface Dog
|
||||
{
|
||||
// name: string;
|
||||
barks: true;
|
||||
wags: true;
|
||||
}
|
||||
|
||||
type CatOrDog = Cat | Dog;
|
||||
|
||||
const animal: CatOrDog =
|
||||
{
|
||||
name: "kaka",
|
||||
purrs: true,
|
||||
barks: true,
|
||||
wags: true,
|
||||
};
|
||||
|
Reference in New Issue
Block a user