Skip to content

Commit

Permalink
feat(types): HoistingLimits
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Nov 30, 2022
1 parent ffd3e52 commit 3661d84
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/types/__tests__/hoisiting-limits.spec-d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* @file Unit Tests - HoistingLimits
* @module pkg-types/types/tests/HoistingLimits
*/

import type TestSubject from '../hoisiting-limits'

describe('unit:types/HoistingLimits', () => {
it('should allow "dependencies"', () => {
assertType<TestSubject>('dependencies')
})

it('should allow "none"', () => {
assertType<TestSubject>('none')
})

it('should allow "workspaces"', () => {
assertType<TestSubject>('workspaces')
})
})
13 changes: 13 additions & 0 deletions src/types/hoisiting-limits.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* @file Type Definitions - HoistingLimits
* @module pkg-types/types/HoistingLimits
*/

/**
* Highest point where packages can be hoisted.
*
* @see https://yarnpkg.com/configuration/manifest#installConfig.hoistingLimits
*/
type HoistingLimits = 'dependencies' | 'none' | 'workspaces'

export type { HoistingLimits as default }
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
* @module tsconfig-types/types
*/

export type { default as HoistingLimits } from './hoisiting-limits'
export type { default as TypesVersions } from './types-versions'

0 comments on commit 3661d84

Please sign in to comment.