It would be more interesting if instead of having fixed order parameters, an object is used for the parameters in the functions createScalarField, createObjectField, createDataSource. An article to use as a reference: The Options Object Pattern with TypeScript.
Example implementation:
createDataSource({ name: string, provider: DataSourceProvider, url: string | DataSourceURLEnv }): DataSource