UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

17 lines (14 loc) 422 B
///<reference path="jquery.clientSideLogging.d.ts" /> $.clientSideLogging({ log_level: 3, client_info: { location:true, screen_size:true, user_agent:true, window_size:false } }); $.info({msg:$(this).parents('li').find('input:text').val()}); $.error({msg:$(this).parents('li').find('input:text').val()}); $.log($(this).parents('li').find('input:text').val()); $.post('/log?type=error&msg=YOUR_ERROR_MESSAGE');