You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(types): remove ambient shims that override external package types (IT-852)
The published `_internal-shims.d.ts` contained `declare module` blocks for
prosemirror-*, vue, eventemitter3, yjs, and @hocuspocus/provider that typed
all exports as `any`. These ambient declarations globally override real types,
breaking consumers who use those packages (e.g. Tiptap users lost all
prosemirror type safety).
- Remove all external package shims from `ensure-types.cjs`
- Keep only `@superdoc/*` workspace package shims (consumers can't install those)
- Add prosemirror-* as optional peerDependencies (public API re-exports their types)
- Add IT-852 regression test: consumer-typecheck scenario that installs prosemirror
alongside superdoc and verifies types are real (not `any`) via `@ts-expect-error`
* chore: update pnpm lockfile for new prosemirror peer deps
* fix(types): keep @hocuspocus/provider, yjs, y-prosemirror as required peers
' export type ComponentOptionsBase<P = any, B = any, D = any, C = any, M = any, Mixin = any, Extends = any, E = any, EE = any, Defaults = any, I = any, II = any, S = any, LC = any, Directives = any, Exposed = any, Provide = any> = any;',
324
-
' export type ComponentOptionsMixin = any;',
325
-
' export type ComponentProvideOptions = any;',
326
-
' export type ComponentPublicInstance<P = any, B = any, D = any, C = any, M = any, E = any, S = any, Options = any, Defaults = any, MakeDefaultsOptional = any, I = any, PublicMixin = any, A = any, B2 = any, C2 = any> = any;',
327
-
' export type ComputedRef<T = any> = any;',
328
-
' export type CreateComponentPublicInstanceWithMixins<T = any, S = any, U = any, V = any, W = any, X = any, Y = any, Z = any, A = any, B = any, C = any, D = any> = any;',
329
-
' export type DefineComponent<P = any, B = any, D = any, C = any, M = any, Mixin = any, Extends = any, E = any, EE = any, PP = any, Props = any, Defaults = any, S = any> = any;',
0 commit comments