bugcore
Version:
bugcore is a JavaScript library that provides a foundational architecture for object oriented JS
60 lines (40 loc) • 1.7 kB
JavaScript
/*
* Copyright (c) 2016 airbug Inc. http://airbug.com
*
* bugcore may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Annotations
//-------------------------------------------------------------------------------
//@Export('ICondition')
//@Require('Interface')
//-------------------------------------------------------------------------------
// Context
//-------------------------------------------------------------------------------
require('bugpack').context("*", function(bugpack) {
//-------------------------------------------------------------------------------
// BugPack
//-------------------------------------------------------------------------------
var Interface = bugpack.require('Interface');
//-------------------------------------------------------------------------------
// Interface
//-------------------------------------------------------------------------------
/**
* @interface
*/
var ICondition = Interface.declare({
_name: "ICondition",
//-------------------------------------------------------------------------------
// Interface Methods
//-------------------------------------------------------------------------------
/**
* @param {Object} value
* @return {boolean}
*/
check: function(value) {}
});
//-------------------------------------------------------------------------------
// Exports
//-------------------------------------------------------------------------------
bugpack.export('ICondition', ICondition);
});