diff --git a/packages/govuk-frontend/src/govuk-prototype-kit/govuk-prototype-kit.config.unit.test.mjs b/packages/govuk-frontend/src/govuk-prototype-kit/govuk-prototype-kit.config.unit.test.mjs index c4621343ce..2d31c5262a 100644 --- a/packages/govuk-frontend/src/govuk-prototype-kit/govuk-prototype-kit.config.unit.test.mjs +++ b/packages/govuk-frontend/src/govuk-prototype-kit/govuk-prototype-kit.config.unit.test.mjs @@ -3,7 +3,7 @@ import { pkg } from '@govuk-frontend/config' import configFn from './govuk-prototype-kit.config.mjs' describe('GOV.UK Prototype Kit config', () => { - /** @type {import('./govuk-prototype-kit.config.mjs').PrototypeKitConfig} */ + /** @type {PrototypeKitConfig} */ let config beforeAll(async () => { @@ -196,3 +196,7 @@ describe('GOV.UK Prototype Kit config', () => { }) }) }) + +/** + * @import { PrototypeKitConfig } from './govuk-prototype-kit.config.mjs' + */ diff --git a/shared/tasks/index.mjs b/shared/tasks/index.mjs index 8247a92c64..feea4efe95 100644 --- a/shared/tasks/index.mjs +++ b/shared/tasks/index.mjs @@ -14,6 +14,10 @@ export * as task from './task.mjs' /** * Types for tasks * - * @typedef {import('./assets.mjs').AssetPathOptions} TaskOptions - * @typedef {(options: TaskOptions) => import('gulp').TaskFunction} TaskFunction + * @typedef {(options: TaskOptions) => TaskFunction} TaskFunction + */ + +/** + * @import { TaskFunction } from 'gulp' + * @import { AssetPathOptions as TaskOptions } from './assets.mjs' */