JSDoc migration broke some type re-exports
Closed this issue · 0 comments
MysteryBlokHed commented
The tests type-accessibility.ts
and type-fn-accessibility.ts
are currently both failing. The migration to JSDoc seems to have excluded some types that were defined/re-exported in the index.d.ts
and index-fn.d.ts
files. These should be re-added to preserve compatibility.
color.js/types/test/type-accessibility.ts
Lines 1 to 37 in b6e92aa
// Testing whether types can be accessed from the main import | |
import { | |
// Re-exported from src/color.d.ts | |
ColorConstructor, | |
ColorObject, | |
ColorTypes, | |
Coords, | |
DefineFunctionCode, | |
DefineFunctionOptions, | |
DefineFunctionHybrid, | |
PlainColorObject, | |
SpaceAccessor, | |
ToColorPrototype, | |
// Re-exported from src/adapt.d.ts | |
White, | |
// Re-exported from src/CATs.d.ts | |
CAT, | |
// Re-exported from src/display.d.ts | |
Display, | |
// Re-exported from src/interpolation.d.ts | |
Range, | |
RangeOptions, | |
MixOptions, | |
StepsOptions, | |
// Re-exported from src/parse.d.ts | |
ParseOptions, | |
// Re-exported from src/rgbspace.d.ts | |
RGBOptions, | |
// Re-exported from src/serialize.d.ts | |
SerializeOptions, | |
// Re-exported from src/space.d.ts | |
SpaceFormat, | |
CoordMeta, | |
Ref, | |
SpaceOptions, | |
} from "colorjs.io"; |
color.js/types/test/type-fn-accessibility.ts
Lines 1 to 32 in b6e92aa
// Testing whether types can be accessed from the /fn import | |
import { | |
// Re-exported from src/color.d.ts | |
ColorConstructor, | |
ColorObject, | |
ColorTypes, | |
Coords, | |
PlainColorObject, | |
// Re-exported from src/adapt.d.ts | |
White, | |
// Re-exported from src/CATs.d.ts | |
CAT, | |
// Re-exported from src/display.d.ts | |
Display, | |
// Re-exported from src/interpolation.d.ts | |
Range, | |
RangeOptions, | |
MixOptions, | |
StepsOptions, | |
// Re-exported from src/parse.d.ts | |
ParseOptions, | |
// Re-exported from src/rgbspace.d.ts | |
RGBOptions, | |
// Re-exported from src/serialize.d.ts | |
SerializeOptions, | |
// Re-exported from src/space.d.ts | |
SpaceFormat, | |
CoordMeta, | |
Ref, | |
SpaceOptions, | |
} from "colorjs.io/fn"; |