Package Exports
- @aws-cdk/service-spec-types
- @aws-cdk/service-spec-types/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-cdk/service-spec-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@aws-cdk/service-spec-types
Types and utils for CloudFormation Service Specifications
import { emptyDatabase, SpecDatabase } from '@aws-cdk/service-spec-types';
import * as fs from 'node:fs';
import * as zlib from 'node:zlib';
export function loadAwsServiceSpec(): SpecDatabase {
const specDatabase = fs.readFileSync('db.json.gz'));
const db = emptyDatabase();
db.load(JSON.parse(zlib.gunzipSync(specDatabase).toString('utf-8')));
return db;
}