We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49f0cf commit f7de213Copy full SHA for f7de213
src/core/basepattern.md
@@ -38,9 +38,13 @@ Also see: https://github.com/Patternslib/pat-PATTERN_TEMPLATE
38
}
39
40
41
- // Register Pattern class in the global pattern registry
+ // Register Pattern class in the global pattern registry and make it usable there.
42
registry.register(Pattern);
43
44
- // Make it available
+ // Export Pattern as default export.
45
+ // You can import it as ``import AnyName from "./{{{ pattern.name }}}";``
46
export default Pattern;
47
+ // Export BasePattern as named export.
48
+ // You can import it as ``import { Pattern } from "./{{{ pattern.name }}}";``
49
+ export { Pattern };
50
0 commit comments