Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSPureFix ASessionMsgFactory Types Patch #85

Open
ambrosestartup opened this issue Mar 5, 2024 · 0 comments
Open

JSPureFix ASessionMsgFactory Types Patch #85

ambrosestartup opened this issue Mar 5, 2024 · 0 comments

Comments

@ambrosestartup
Copy link

Hi, I was deploying using jspurefix and I had some strict type errs stemming from string | undefined -> string. I had to implement an override, thought this might be helpful for users failing on build as I was:

declare module "jspurefix/dist/transport/session/a-session-msg-factory" {
import { ISessionMsgFactory } from "jspurefix";
import { ILooseObject } from "jspurefix/dist/collections/collection";
import { IStandardHeader } from "jspurefix/dist/types/FIX4.4/repo";

export interface ASessionMsgFactory extends ISessionMsgFactory {
  logon(userRequestId?: string, isResponse?: boolean): ILooseObject;
  header(msgType?: string, seqNum?: number, time?: Date, overrideData?: Partial<IStandardHeader>): ILooseObject;
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant