-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0edc0c0
commit 676f6dd
Showing
83 changed files
with
267,105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; |
Oops, something went wrong.