Skip to content

Commit

Permalink
add import attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Dec 30, 2024
1 parent 2ff060f commit 82c5ab0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions api/v2/data/[id].js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
import characters_ from "../../../data/characters.json";
import actionCards_ from "../../../data/action_cards.json";
import entities_ from "../../../data/entities.json";
import keywords_ from "../../../data/keywords.json";
import characters_ from "../../../data/characters.json" with { type: "json" };
import actionCards_ from "../../../data/action_cards.json" with { type: "json" };
import entities_ from "../../../data/entities.json" with { type: "json" };
import keywords_ from "../../../data/keywords.json" with { type: "json" };

/**
* @typedef {import("@gi-tcg/static-data").CharacterRawData} CharacterRawData
Expand Down
2 changes: 1 addition & 1 deletion api/v2/images/[id].js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import rawData from "../../../data/image_names.json";
import rawData from "../../../data/image_names.json" with { type: "json" };

/**
* @typedef {import("@vercel/node").VercelRequest} VercelRequest
Expand Down

0 comments on commit 82c5ab0

Please sign in to comment.