Skip to content

Instantly share code, notes, and snippets.

@oblank
Created January 27, 2016 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oblank/52b2af9ea08ed5833555 to your computer and use it in GitHub Desktop.
Save oblank/52b2af9ea08ed5833555 to your computer and use it in GitHub Desktop.
javascript constants 定义
/*
* Copyright (c) 2014-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* TodoConstants
*/
var keyMirror = require('keymirror');
module.exports = keyMirror({
TODO_CREATE: null,
TODO_COMPLETE: null,
TODO_DESTROY: null,
TODO_DESTROY_COMPLETED: null,
TODO_TOGGLE_COMPLETE_ALL: null,
TODO_UNDO_COMPLETE: null,
TODO_UPDATE_TEXT: null
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment