Skip to content

Commit

Permalink
fix: include local state in type def
Browse files Browse the repository at this point in the history
Signed-off-by: ryanwolhuter <dev@ryanwolhuter.com>
  • Loading branch information
ryanwolhuter committed Jan 22, 2024
1 parent 96e9147 commit b93c5d4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ import { reducer } from './gen/reducer';
import { documentModel } from './gen/document-model';
import genUtils from './gen/utils';
import * as customUtils from './src/utils';
import { <%= h.changeCase.pascal(documentType) %>State, <%= h.changeCase.pascal(documentType) %>Action } from './gen/types';
import {
<%= h.changeCase.pascal(documentType) %>State,
<%= h.changeCase.pascal(documentType) %>Action,
<%= h.changeCase.pascal(documentType) %>LocalState,
} from './gen/types';

const Document = <%= h.changeCase.pascal(documentType) %>;
const utils = { ...genUtils, ...customUtils };
Expand All @@ -22,7 +26,7 @@ const actions = { ...BaseActions, ...<%= h.changeCase.pascal(documentType) %>Act
export const module: DocumentModel<
<%= h.changeCase.pascal(documentType) %>State,
<%= h.changeCase.pascal(documentType) %>Action,
<%= h.changeCase.pascal(documentType) %>
<%= h.changeCase.pascal(documentType) %>LocalState
> = {
Document,
reducer,
Expand Down

0 comments on commit b93c5d4

Please sign in to comment.