async generateFromString(asyncapiString, parseOptions = {}) {
    const isParsableCompatible = asyncapiString && typeof asyncapiString === 'string';
    if (!isParsableCompatible) {
      throw new Error('Parameter "asyncapiString" must be a non-empty string.');
    }
    return await this.generate(asyncapiString, parseOptions);
  }
Generates files from a given template and AsyncAPI string.

@example
const asyncapiString = `
asyncapi: '2.0.0'
info:
  title: Example
  version: 1.0.0
...
`;
generator
  .generateFromString(asyncapiString)
  .then(() => {
    console.log('Done!');
  })
  .catch(console.error);

@example <caption>Using async/await</caption>
const asyncapiString = `
asyncapi: '2.0.0'
info:
  title: Example
  version: 1.0.0
...
`;

try {
  await generator.generateFromString(asyncapiString);
  console.log('Done!');
} catch (e) {
  console.error(e);
}

@param  {String} asyncapiString AsyncAPI string to use as source.
@param  {Object} [parseOptions={}] AsyncAPI Parser parse options. Check out {@link https://www.github.com/asyncapi/parser-js|@asyncapi/parser} for more information.
@deprecated Use the `generate` function instead. Just change the function name and it works out of the box.
@return {Promise<TemplateRenderResult|undefined>}