Skip to content

Commit

Permalink
fix: Correct export order for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed May 18, 2017
1 parent e172b23 commit 1f6c788
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions example/ModelHookPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Iridium = require("../iridium");

export = LowercaseCollectionsPlugin;

class LowercaseCollectionsPlugin implements Iridium.Plugin {
newModel(model: Iridium.Model<any, any>) {
model.collectionName = model.collectionName.toLowerCase();
}
}
}

export = LowercaseCollectionsPlugin;
4 changes: 2 additions & 2 deletions example/ValidationPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Iridium = require("../iridium");
import Skmatc = require("skmatc");

export = StringCaseValidationPlugin;

class StringCaseValidationPlugin implements Iridium.Plugin {
validate = [
Skmatc.create((schema) => schema === "Lowercase", function (schema, data, path) { return this.assert(data.toLowerCase() == data) }),
Skmatc.create((schema) => schema === "Uppercase", function (schema, data, path) { return this.assert(data.toUpperCase() == data) })
];
}

export = StringCaseValidationPlugin;

0 comments on commit 1f6c788

Please sign in to comment.