Skip to content

Commit

Permalink
feat(flow): flow-operations tries to spread inexact objects #8000
Browse files Browse the repository at this point in the history
  • Loading branch information
Athelian committed Aug 30, 2022
1 parent a188181 commit 6513cc2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export class FlowWithPickSelectionSetProcessor extends BaseSelectionSetProcessor
}

transformTypenameField(type: string, name: string): ProcessResult {
return [`{ ${name}: ${type} }`];
const useFlowExactObject = this.config.useFlowExactObjects;

return [`{${useFlowExactObject ? "|" : ""} ${name}: ${type} } ${useFlowExactObject ? "|" : ""}`];
}
}

0 comments on commit 6513cc2

Please sign in to comment.