Skip to content

Commit

Permalink
Rename context
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Sep 7, 2023
1 parent db84e81 commit 6f6619a
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 134 deletions.
10 changes: 5 additions & 5 deletions packages/seroval/src/core/cross/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ export function createStreamingCrossParserContext(
};
}

export interface CrossSerializationContext extends BaseParserContext {
export interface CrossSerializerContext extends BaseParserContext {
stack: number[];
// Array of assignments to be done (used for recursion)
assignments: Assignment[];
// Object flags
flags: FlaggedObject[];
}

export interface CrossSerializationOptions {
export interface CrossSerializerOptions {
features: number;
}

export function createCrossSerializationContext(
options: CrossSerializationOptions,
): CrossSerializationContext {
export function createCrossSerializerContext(
options: CrossSerializerOptions,
): CrossSerializerContext {
return {
stack: [],
assignments: [],
Expand Down
Loading

0 comments on commit 6f6619a

Please sign in to comment.