MyCustomInitInfo

A provider with a custom constructor.

Since the custom constructor parameters match the provider‘s fields, we don’t need to render a separate table of constructor parameters.

FIELDS

NameDescription
fooFoo data
barBar data.

MyCustomInitWithDefaultParamValueInfo

A provider with a custom constructor with a parameter with a default value.

Since the custom constructor parameters match the provider‘s fields, we don’t need to render a separate table of constructor parameters - but we do need to render the default value.

FIELDS

NameDescriptionDefault Value
fooFoo datanone
barBar data.42

MyCustomInitWithDocumentedParamInfo

A provider with a custom constructor with documented constructor parameters.

Docs for constructor parameters differ from docs for fields, so we need to render constructor parameters as a separate table.

CONSTRUCTOR PARAMETERS

NameDescriptionDefault Value
fooFoo data; must be non-negativenone
barBar data. Note that we didn't document bar parameter for the init callback - we want this docstring to be propagated to the constructor param table.42

FIELDS

NameDescription
fooFoo data
barBar data. Note that we didn't document bar parameter for the init callback - we want this docstring to be propagated to the constructor param table.

MyCustomInitWithMismatchingConstructorParamsAndFieldsInfo

A provider with a custom constructor whose set of constructor parameters does not equal the provider's set of fields.

We have no choice - we need to render constructor parameters as a separate table.

CONSTRUCTOR PARAMETERS

NameDescriptionDefault Value
fooFoo datanone
barBar data.none

FIELDS

NameDescription
fooFoo data
barBar data.
validatedTrue, hopefully

MyDeprecatedInfo

You can read this info.

But should you really construct it?

DEPRECATED

Do not construct!

FIELDS

NameDescription
fooFoo

MyFooInfo

Stores information about a foo.

FIELDS

NameDescription
bar-
baz-

MyPoorlyDocumentedInfo

MyVeryDocumentedInfo

A provider with some really neat documentation.

Look on my works, ye mighty, and despair!

FIELDS

NameDescription
favorite_foodA string representing my favorite food

Expected to be delicious.
favorite_colorA string representing my favorite color