From b77d13288b8a0101770a4d4c29100d13af592f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A3=A8=EB=B0=80LuMir?= Date: Tue, 4 Mar 2025 01:42:43 +0900 Subject: [PATCH] refactor(*): create `types.js` --- src/types.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/types.js diff --git a/src/types.js b/src/types.js new file mode 100644 index 0000000..b81cfbb --- /dev/null +++ b/src/types.js @@ -0,0 +1,29 @@ +/** + * @fileoverview Define common types. + */ + +// @ts-check + +// -------------------------------------------------------------------------------- +// Typedefs +// -------------------------------------------------------------------------------- + +/** + * @typedef {string} Uri The URI. It should be `string` type. + */ + +/** + * @typedef {'link' | 'image'} Type The type of URI. It should be either `'link'` or `'image'`. + */ + +/** + * @typedef {object} UriTypeObject + * @property {Uri} uri The URI. It should be `string` type. + * @property {Type} type The type of URI. It should be either `'link'` or `'image'`. + */ + +// -------------------------------------------------------------------------------- +// Exports +// -------------------------------------------------------------------------------- + +module.exports = {};