|
@@ -108,6 +108,14 @@ namespace Contents {
|
|
|
readonly format: FileFormat;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Validates an IModel, thowing an error if it does not pass.
|
|
|
+ */
|
|
|
+ export
|
|
|
+ function validateContentsModel(contents: IModel): void {
|
|
|
+ validate.validateContentsModel(contents);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* A contents file type.
|
|
|
*/
|
|
@@ -184,6 +192,14 @@ namespace Contents {
|
|
|
readonly last_modified: string;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Validates an ICheckpointModel, thowing an error if it does not pass.
|
|
|
+ */
|
|
|
+ export
|
|
|
+ function validateCheckpointModel(checkpoint: ICheckpointModel): void {
|
|
|
+ validate.validateCheckpointModel(checkpoint);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* The change args for a file change.
|
|
|
*/
|