Add a section on naming conventions for Start and Setup (#51676) (#52199)

This commit is contained in:
Stacey Gammon 2019-12-04 11:58:49 -05:00 committed by GitHub
parent c3aa48b7d6
commit dfc0612f26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,3 +247,8 @@ export function registerMyPluginUsageCollector(usageCollection?: UsageCollection
usageCollection.registerCollector(myCollector);
}
```
### Naming conventions
Export start and setup contracts as `MyPluginStart` and `MyPluginSetup`.
This avoids naming clashes, if everyone exported them simply as `Start` and `Setup`.