You can import only the type by using the type
word:
import type { APIResponseType } from './api'
You can also individually import types in a mix/match import:
import { createCatName, type Cat, type Dog } from './animal.js'
You can import only the type by using the type
word:
import type { APIResponseType } from './api'
You can also individually import types in a mix/match import:
import { createCatName, type Cat, type Dog } from './animal.js'