Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding build artifacts so we can use them directly. #1

Merged
merged 1 commit into from
Jun 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
lib
# lib
24 changes: 24 additions & 0 deletions lib/api.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import validator = require('./validator');
export interface APIValidationOptions {
parameters: {
[parameterName: string]: any;
};
pseudoParameters: {
[pseudoParameterName: string]: any;
};
}
export declare type ValidationOptions = APIValidationOptions & validator.ValidateOptions;
export declare type ValidationResult = validator.ErrorObject;
/**
* Synchronously validates a CloudFormation yaml or json file.
* @param fileName
* @param options
*/
export declare function validateFile(fileName: string, options?: Partial<ValidationOptions>): ValidationResult;
/**
* Synchronously validates an object. The object should be what you
* get from JSON.parse-ing or yaml.load-ing a CloudFormation template.
* @param objectToValidate
* @param options
*/
export declare function validateJsonObject(objectToValidate: any, options?: Partial<ValidationOptions>): ValidationResult;
42 changes: 42 additions & 0 deletions lib/api.js

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

1 change: 1 addition & 0 deletions lib/api.js.map

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

97 changes: 97 additions & 0 deletions lib/awsData.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
export declare const awsExtraDocs: {
[k: string]: string;
};
export declare type AWSPrimitiveType = 'String' | 'Integer' | 'Boolean' | 'Json' | 'Double' | 'Long' | 'Timestamp';
export interface PropertyBase {
Required: boolean;
Documentation: string;
UpdateType: 'Mutable' | 'Immutable' | 'Conditional';
}
export interface PrimitiveProperty extends PropertyBase {
PrimitiveType: AWSPrimitiveType;
Type: undefined;
ItemType: undefined;
PrimitiveItemType: undefined;
}
export interface ComplexProperty extends PropertyBase {
Type: string;
PrimitiveType: undefined;
ItemType: undefined;
PrimitiveItemType: undefined;
}
export interface ListPropertyBase extends PropertyBase {
Type: 'List';
DuplicatesAllowed: boolean;
PrimitiveType: undefined;
}
export interface PrimitiveItemType {
PrimitiveItemType: AWSPrimitiveType;
ItemType: undefined;
}
export interface ItemType {
ItemType: string;
PrimitiveItemType: undefined;
}
export declare type ListProperty = ListPropertyBase & (PrimitiveItemType | ItemType);
export interface MapPropertyBase extends PropertyBase {
Type: 'Map';
DuplicatesAllowed: boolean;
PrimitiveType: undefined;
ItemType: undefined;
}
export declare type MapProperty = MapPropertyBase & (PrimitiveItemType | ItemType);
export declare type Property = PrimitiveProperty | ComplexProperty | ListProperty | MapProperty;
export interface ResourcePropertyType {
Documentation: string;
Properties: {
[propertyName: string]: Property | undefined;
};
AdditionalProperties: undefined;
}
export interface ResourceType {
Documentation: string;
Properties: {
[propertyName: string]: Property | undefined;
};
Attributes?: {
[attributeName: string]: Attribute | undefined;
};
AdditionalProperties?: boolean;
}
export interface PrimitiveAttribute {
PrimitiveType: AWSPrimitiveType;
}
export interface ListAttribute {
Type: 'List';
PrimitiveItemType: AWSPrimitiveType;
}
export declare type Attribute = PrimitiveAttribute | ListAttribute;
export declare const awsResources: {
PropertyTypes: {
[propertyName: string]: ResourcePropertyType | undefined;
};
ResourceTypes: {
[resourceName: string]: ResourceType | undefined;
};
};
export declare const awsResourceRefTypes: {
[resourceName: string]: string | undefined;
};
export declare const awsParameterTypes: {
[parameterName: string]: "string" | "number" | "array" | undefined;
};
export declare const awsIntrinsicFunctions: {
[functionName: string]: {
supportedFunctions: string[];
};
};
export declare const awsRefOverrides: {
[refOverride: string]: any;
"AWS::AccountId": string;
"AWS::NotificationARNs": string[];
"AWS::NoValue": undefined;
"AWS::Region": string;
"AWS::StackId": string;
"AWS::StackName": string;
"AWS::URLSuffix": string;
};
14 changes: 14 additions & 0 deletions lib/awsData.js

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

1 change: 1 addition & 0 deletions lib/awsData.js.map

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

2 changes: 2 additions & 0 deletions lib/docs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare function getDoc(search: string | null, browse?: boolean): string;
export declare function getUrls(search?: string | null): string[];
124 changes: 124 additions & 0 deletions lib/docs.js

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

1 change: 1 addition & 0 deletions lib/docs.js.map

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

Empty file added lib/index.d.ts
Empty file.
Loading