Skip to content

Commit

Permalink
fix: VFlags not being exported correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Jul 9, 2021
1 parent ef17cf1 commit 0895b7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { OLD_VNODE_FIELD } from './constants';
import { createElement } from './createElement';
import { className, m, style, svg, INSERT, UPDATE, DELETE } from './m';
import { patch, patchChildren, patchProps } from './patch';
import type { VElement, VFlags, VNode, VProps, VDelta } from './structs';
import { VElement, VFlags, VNode, VProps } from './structs';

export type { VNode, VElement, VProps };
export {
createElement,
className,
Expand All @@ -14,10 +15,6 @@ export {
patchProps,
patchChildren,
VFlags,
VNode,
VElement,
VProps,
VDelta,
INSERT,
UPDATE,
DELETE,
Expand Down
2 changes: 1 addition & 1 deletion src/structs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export enum VFlags {
ANY_CHILDREN = 1 << 2,
}

export enum VDeltaOperationTypes {
export const enum VDeltaOperationTypes {
INSERT = 1 << 0,
UPDATE = 1 << 1,
DELETE = 1 << 2,
Expand Down

0 comments on commit 0895b7e

Please sign in to comment.