BREAKING CHANGE(scope): change to new @pushrocks scope
This commit is contained in:
20
ts/index.ts
20
ts/index.ts
@@ -1,9 +1,15 @@
|
||||
import * as plugins from './smartyaml.plugins'
|
||||
import * as plugins from './smartyaml.plugins';
|
||||
|
||||
export let yamlStringToObject = async (yamlStringArg, optionsArg: plugins.jsYaml.LoadOptions = {}): Promise<any> => {
|
||||
return plugins.jsYaml.safeLoad(yamlStringArg)
|
||||
}
|
||||
export let yamlStringToObject = async (
|
||||
yamlStringArg,
|
||||
optionsArg: plugins.jsYaml.LoadOptions = {}
|
||||
): Promise<any> => {
|
||||
return plugins.jsYaml.safeLoad(yamlStringArg);
|
||||
};
|
||||
|
||||
export let objectToYamlString = async (objectArg, optionsArg:plugins.jsYaml.DumpOptions = {}): Promise<string> => {
|
||||
return plugins.jsYaml.safeDump(objectArg)
|
||||
}
|
||||
export let objectToYamlString = async (
|
||||
objectArg,
|
||||
optionsArg: plugins.jsYaml.DumpOptions = {}
|
||||
): Promise<string> => {
|
||||
return plugins.jsYaml.safeDump(objectArg);
|
||||
};
|
||||
|
@@ -1,6 +1,4 @@
|
||||
import 'typings-global'
|
||||
import * as jsYaml from 'js-yaml'
|
||||
import 'typings-global';
|
||||
import * as jsYaml from 'js-yaml';
|
||||
|
||||
export {
|
||||
jsYaml
|
||||
}
|
||||
export { jsYaml };
|
||||
|
Reference in New Issue
Block a user