Creates a type token with a default Provider and optional default registration options.
Example:
// Notice how we pass in a Provider directly at type creation site
const ISpell = createType<Spell>("Spell", {
useFactory: () => getDefaultSpell(),
});
container.register(ISpell);
Optionaloptions: RegistrationOptions
Creates a type token.
Example: