-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correct export order for examples
- Loading branch information
1 parent
e172b23
commit 1f6c788
Showing
2 changed files
with
5 additions
and
5 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 |
---|---|---|
@@ -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; |
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 |
---|---|---|
@@ -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; |