main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
304 bytes
|
Line | |
---|
1 | import defaultNamespaceInstance from "../namespace.mjs";
|
---|
2 | /**
|
---|
3 | * Creates a refract representation of an Element.
|
---|
4 | * https://github.com/refractproject/refract-spec
|
---|
5 | */
|
---|
6 | const dehydrate = (element, namespace = defaultNamespaceInstance) => {
|
---|
7 | return namespace.toRefract(element);
|
---|
8 | };
|
---|
9 | export default dehydrate; |
---|
Note:
See
TracBrowser
for help on using the repository browser.