-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
src/drivers/absurd-sql/index.ts
Outdated
@@ -48,7 +48,7 @@ export const initElectricSqlJs = async (worker: Worker, locateOpts: LocateFileOp | |||
await workerClient.request(init, locator.serialise()) | |||
|
|||
// we remove opts type info here to implement target interface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this comment.
I tried separating the config from the opts but it would not implement the target interface.
I see there is not the same problem now, but I also see that this ElectrifyOptions still has the config. That is not the idea right? -- you might enter the same problems that I did, if you try to refactor this type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. yeah. forgot to remove the config from the ElectrifyOptions interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks great, definitely better to have config and opts separate.
It's approved on my side.
Replace ElectrifyOptions with a {ElectricConfig, ElectrifyOptions} params.
otherwise its difficult to pass in generated configuration like the authentication token
f3144db
to
d6f68ff
Compare
Replace ElectrifyOptions with a {ElectricConfig, ElectrifyOptions} params.