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
function isObject(v) { | |
return typeof v === 'object' && v !== null | |
} | |
function compare(a, b, indent) { | |
var toplevel = false; | |
if (indent === undefined) { | |
indent = 0; | |
toplevel = true; | |
} |
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
/** | |
* Submit Events have several properties (like 'explicitOriginalTarget') that are not present | |
* on TypeScript's standard Event type. Straight casting with 'as' does not work so you will | |
* need to cast as 'unknown' first. (as of TypeScript 3.3.3) | |
*/ | |
export interface SubmitEvent { | |
explicitOriginalTarget:HTMLElement | |
} | |
const form:HTMLFormElement = document.getElementById('the_form') as HTMLFormElement; |
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
package test; | |
import haxe.Http; | |
import haxe.Json; | |
import haxe.io.BytesOutput; | |
class DeleteRequest { | |
static function main() { | |
var url = "http://some.url/endpoint"; | |
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
package test; | |
import haxe.Http; | |
import haxe.Json; | |
import haxe.io.BytesOutput; | |
class PatchRequest { | |
static function main() { | |
var url = "http://some.url/endpoint"; | |
var data = { |
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
package test; | |
import haxe.Http; | |
import haxe.Json; | |
import haxe.io.BytesOutput; | |
class PutRequest { | |
static function main() { | |
var url = "http://some.url/endpoint"; | |
var data = { |