Public barrel for the @fg/shared package.
Re-exports every type from stroke, primitives, bridge,
and session under a single import specifier.
Why
Consumers write import type { Stroke } from "@fg/shared" rather
than reaching into individual sub-modules. This lets us reorganise
internals (split or merge files) without touching import paths in
apps/tutor or apps/edge.
How
Simple export * re-export statements — bundlers and TypeScript's
isolatedModules mode handle this correctly. Tree-shaking removes
any types not referenced by the consuming bundle at build time.
When
The entry-point for any cross-app code that needs shared types;
should always be the first shared import resolved per file.
File
index.ts
What
Public barrel for the
@fg/sharedpackage. Re-exports every type fromstroke,primitives,bridge, andsessionunder a single import specifier.Why
Consumers write
import type { Stroke } from "@fg/shared"rather than reaching into individual sub-modules. This lets us reorganise internals (split or merge files) without touching import paths inapps/tutororapps/edge.How
Simple
export *re-export statements — bundlers and TypeScript'sisolatedModulesmode handle this correctly. Tree-shaking removes any types not referenced by the consuming bundle at build time.When
The entry-point for any cross-app code that needs shared types; should always be the first shared import resolved per file.