Be able to parse the following JSON format:
{
"token": "ASDSD",
"action": "Foo",
"payload": {},
}
<?php | |
/** | |
* This file can be used to generate HHVM/Hack HHI definitions. | |
* It requires a specific extension to be passed as an argument on the command line. | |
* It will then loop through all constants, functions, and classes and print accordingly. | |
* | |
* For example, to generate HHI definitions for the SPL extension. | |
* | |
* php generate.php spl | |
* |
Be able to parse the following JSON format:
{
"token": "ASDSD",
"action": "Foo",
"payload": {},
}
/* eslint-disable strict, comma-dangle, prettier/prettier */ | |
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const WebpackGitHash = require('webpack-git-hash'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin'); | |
const ParallelUglifyPlugin = require('webpack-parallel-uglify-plugin'); |
import React from 'react'; | |
interface ComponentProps {} | |
// Inferred, don't need to do anything (preferred) | |
function Component(props: ComponentProps) {} | |
// Using "this" special argument, but this does not support static properties or methods | |
function Component(this: React.SFC<ComponentProps>, props: ComponentProps) {} | |
import CSS from 'csstype'; | |
type SheetType = 'global' | 'low-pri' | 'high-pri'; | |
type Properties = CSS.Properties; | |
type Property = string; | |
type Value = string | number; | |
type Cache = { | |
className: string; | |
rank: number; |
/// <reference types="debug" /> | |
declare module "color" { | |
export interface ColorFormatter { | |
(message: string | { | |
toString: () => string; | |
}): string; | |
} | |
const _default: { | |
fail: ColorFormatter; | |
mute: ColorFormatter; |
'use strict'; | |
function nativeModule() { | |
const data = _interopRequireWildcard(require('module')); | |
nativeModule = function () { | |
return data; | |
}; | |
return data; |