Skip to content

Commit

Permalink
#3019 - Fix MolSerializer error
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoblit committed Aug 24, 2023
1 parent a3b70a9 commit 369f109
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions packages/ketcher-core/src/domain/serializers/mol/mol.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
***************************************************************************/

export interface MolSerializerOptions {
reactionRelayout?: boolean;
badHeaderRecover?: boolean;
ignoreErrors?: boolean;
noRgroups?: boolean;
preserveIndigoDesc?: boolean;
reactionRelayout: boolean;
badHeaderRecover: boolean;
ignoreErrors: boolean;
noRgroups: boolean;
preserveIndigoDesc: boolean;
ignoreChiralFlag?: boolean;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import { MolSerializerOptions } from '../mol';

const DelimeterRegex = /^[^]+?\$\$\$\$$/gm;
export class SdfSerializer implements Serializer<Array<SdfItem>> {
private readonly molSerializerOptions?: MolSerializerOptions;
private readonly molSerializerOptions?: Partial<MolSerializerOptions>;

constructor(options?: MolSerializerOptions) {
constructor(options?: Partial<MolSerializerOptions>) {
this.molSerializerOptions = options;
}

Expand Down

0 comments on commit 369f109

Please sign in to comment.