Skip to content

Commit

Permalink
organize visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Sep 22, 2023
1 parent 299345d commit f3b58ac
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/lib_new/method_decorators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ic } from './ic';
import { GuardResult, IDL, Record } from './index';
import { GuardResult, IDL } from './index';

import {
CandidClass,
Expand All @@ -17,8 +17,7 @@ import {
ServiceConstructor,
serviceDecorator
} from './service';
import { DecodeVisitor } from './visitors/decode_visitor';
import { EncodeVisitor } from './visitors/encode_visitor';
import { DecodeVisitor, EncodeVisitor } from './visitors/encode_decode/';

export type Manual<T> = void;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
visitTuple,
visitVariant,
visitVec
} from './encode_decode';
} from '.';

/**
* When we decode a Service we are given a principal. We need to use that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
visitTuple,
visitVariant,
visitVec
} from './encode_decode';
} from '.';

/**
* When we encode a Service we have a service class and we need it to be only
Expand Down
5 changes: 3 additions & 2 deletions src/lib_new/visitors/encode_decode/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { IDL } from '@dfinity/candid';
import { DecodeVisitor } from '../decode_visitor';
import { EncodeVisitor } from '../encode_visitor';
import { DecodeVisitor } from './decode_visitor';
import { EncodeVisitor } from './encode_visitor';
import { AzleResult, Result } from '../../result';
export { EncodeVisitor, DecodeVisitor };

/*
* The VisitorData gives us js_data which is the data that is about to be
Expand Down

0 comments on commit f3b58ac

Please sign in to comment.