Skip to content

Commit

Permalink
fix: export types separately
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Oct 29, 2022
1 parent 2882ae8 commit 492c722
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
12 changes: 1 addition & 11 deletions packages/fiber/src/core/index.tsx
Expand Up @@ -17,15 +17,7 @@ import {
privateKeys,
} from './store'
import { createRenderer, extend, Root } from './renderer'
import {
createLoop,
addEffect,
addAfterEffect,
addTail,
GlobalEffectType,
flushGlobalEffects,
GlobalRenderCallback,
} from './loop'
import { createLoop, addEffect, addAfterEffect, addTail, flushGlobalEffects } from './loop'
import { getEventPriority, EventManager, ComputeFunction } from './events'
import {
is,
Expand Down Expand Up @@ -553,11 +545,9 @@ export {
invalidate,
advance,
extend,
GlobalRenderCallback,
addEffect,
addAfterEffect,
addTail,
GlobalEffectType,
flushGlobalEffects,
getRootState,
act,
Expand Down
4 changes: 3 additions & 1 deletion packages/fiber/src/index.tsx
Expand Up @@ -12,8 +12,10 @@ export type {
Performance,
RootState,
} from './core/store'
export type { ThreeEvent, Events, EventManager, ComputeFunction, createEvents } from './core/events'
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events'
export { createEvents } from './core/events'
export type { ObjectMap, Camera } from './core/utils'
export * from './web/Canvas'
export { createPointerEvents as events } from './web/events'
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop'
export * from './core'
4 changes: 3 additions & 1 deletion packages/fiber/src/native.tsx
Expand Up @@ -12,8 +12,10 @@ export type {
Performance,
RootState,
} from './core/store'
export type { ThreeEvent, Events, EventManager, ComputeFunction, createEvents } from './core/events'
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events'
export { createEvents } from './core/events'
export type { ObjectMap, Camera } from './core/utils'
export * from './native/Canvas'
export { createTouchEvents as events } from './native/events'
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop'
export * from './core'

0 comments on commit 492c722

Please sign in to comment.