Skip to content

Commit

Permalink
Add a few more @import
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Jan 10, 2025
1 parent 5eb56ce commit e620b8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -196,3 +196,7 @@ describe('GOV.UK Prototype Kit config', () => {
})
})
})

/**
* @import { PrototypeKitConfig } from './govuk-prototype-kit.config.mjs'
*/
8 changes: 6 additions & 2 deletions shared/tasks/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
*/

0 comments on commit e620b8b

Please sign in to comment.