Skip to content

Commit f7de213

Browse files
committed
maint(Docs): Improve documentation.
1 parent c49f0cf commit f7de213

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/basepattern.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ Also see: https://github.com/Patternslib/pat-PATTERN_TEMPLATE
3838
}
3939
}
4040

41-
// Register Pattern class in the global pattern registry
41+
// Register Pattern class in the global pattern registry and make it usable there.
4242
registry.register(Pattern);
4343

44-
// Make it available
44+
// Export Pattern as default export.
45+
// You can import it as ``import AnyName from "./{{{ pattern.name }}}";``
4546
export default Pattern;
47+
// Export BasePattern as named export.
48+
// You can import it as ``import { Pattern } from "./{{{ pattern.name }}}";``
49+
export { Pattern };
4650

0 commit comments

Comments
 (0)