TypeScript: Suggest introducing a type for metadata.keyspaces

Description

I'd like to suggest introducing a type for the keyspace metadata. This way it would be possible for consumers to extend the type.

Currently:

Propose:

Then consumers could do something like:

Without that new type, TS will complain about about subsequent property defs having the same type.

Also, `strategyOptions` seems like a good candidate to have on packaged types.

Environment

None

Pull Requests

None

Activity

Show:
Jorge Bay Gondra
September 24, 2019, 7:27 AM

Makes sense, +1

Assignee

Unassigned

Reporter

Gim Mahasintunan

Reviewer

None

Fix versions

None

Labels

Components

None

PM Priority

None

Pull Request

None

Affects versions

Priority

Major
Configure