The Extension type currently exposes namespaceObj as an any type. This PR changes Extension to a generic interface that adds explicit typing to the namespaceObj type.
These changes should not affect any existing code, since the generic parameters fallback to the current types.
The motivation for making this change was to have intellisense on instances of PGlite that were created with extensions. PGlite.create(...) already included typing for extensions, so this change is redundant, aside from reducing the number of any types in the codebase.
The
Extension
type currently exposesnamespaceObj
as anany
type. This PR changesExtension
to a generic interface that adds explicit typing to thenamespaceObj
type.These changes should not affect any existing code, since the generic parameters fallback to the current types.
The motivation for making this change was to have intellisense on instances of PGlite that were created with extensions.
PGlite.create(...)
already included typing for extensions, so this change is redundant, aside from reducing the number ofany
types in the codebase.