Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vasireddy99 committed Nov 9, 2023
1 parent 0edc0c0 commit 676f6dd
Show file tree
Hide file tree
Showing 83 changed files with 267,105 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/cfnspec/build-tools/build.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
51 changes: 51 additions & 0 deletions packages/@aws-cdk/cfnspec/build-tools/build.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions packages/@aws-cdk/cfnspec/build-tools/massage-spec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { schema } from '../lib';
export declare function massageSpec(spec: schema.Specification): void;
/**
* Modifies the provided specification so that ``ResourceTypes`` and ``PropertyTypes`` are listed in alphabetical order.
*
* @param spec an AWS CloudFormation Resource Specification document.
*
* @returns ``spec``, after having sorted the ``ResourceTypes`` and ``PropertyTypes`` sections alphabetically.
*/
export declare function normalize(spec: schema.Specification): schema.Specification;
76 changes: 76 additions & 0 deletions packages/@aws-cdk/cfnspec/build-tools/massage-spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions packages/@aws-cdk/cfnspec/build-tools/patch-set.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export interface PatchOptions {
readonly quiet?: boolean;
/**
* Strict patching mode.
* Will fail if a patch can't be applied.
* Set to `false` to silently ignore any errors.
*
* @default true
*/
readonly strict?: boolean;
}
export type PatchSet = Record<string, PatchSetElement>;
export type PatchSetElement = {
readonly type: 'fragment';
readonly data: any;
} | {
readonly type: 'patch';
readonly data: any;
} | {
readonly type: 'set';
readonly sources: PatchSet;
};
export declare function loadPatchSet(sourceDirectory: string, relativeTo?: string): Promise<PatchSet>;
export declare function evaluatePatchSet(sources: PatchSet, options?: PatchOptions): any;
/**
* Load a patch set from a directory
*/
export declare function applyPatchSet(sourceDirectory: string, options?: PatchOptions): Promise<any>;
/**
* Load a patch set and write it out to a file
*/
export declare function applyAndWrite(targetFile: string, sourceDirectory: string, options?: PatchOptions): Promise<void>;
export declare function writeSorted(targetFile: string, data: any): Promise<void>;
Loading

0 comments on commit 676f6dd

Please sign in to comment.