TypeScript version: 4.2.2
tsconfig.json
{
"compilerOptions": {
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUncheckedIndexedAccess": true,
TypeScript version: 4.2.2
tsconfig.json
{
"compilerOptions": {
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUncheckedIndexedAccess": true,
# Disable any form of screen saver / screen blanking / power management | |
xset s off | |
xset s noblank | |
xset -dpms | |
# Allow quitting the X server with CTRL-ATL-Backspace | |
setxkbmap -option terminate:ctrl_alt_bksp | |
# Start Chromium in kiosk mode | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State' |
import React, { MouseEvent, PureComponent } from 'react'; | |
interface Props { | |
onClickOutside: () => any; | |
} | |
// @TODO: element should be constrained to 'keyof ReactHTML' but this causes some crazy memory leak | |
export const withClickOutside = (element: string) => { | |
const Element = element; |
import axios, { AxiosRequestConfig, AxiosError, AxiosResponse, CancelTokenSource } from 'axios'; | |
interface PollOptions<PollResponse, CompleteResponse> { | |
interval: number; | |
shouldContinuePolling: (response: PollResponse | CompleteResponse) => response is PollResponse; | |
isComplete: (response: PollResponse | CompleteResponse) => response is CompleteResponse; | |
onStart?: () => any; | |
onStop?: () => any; | |
onError: (error: AxiosError) => any; | |
onComplete: (response: CompleteResponse) => any; |
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { wrapThunkAction } from './somewhere'; | |
import { action } from './actions'; | |
const wrappedAction = wrapThunkAction(action); | |
interface DispatchProps { | |
action: typeof wrappedAction; |
#! /usr/bin/env bash | |
RED="\033[1;31m" | |
GREEN="\033[1;32m" | |
YELLOW="\033[1;33m" | |
COLOR_NONE="\033[1;39m" | |
NVMRC=".nvmrc" | |
function check_node_version () { |
Thursday 5th April, 2018
Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, HTML, CSS, or the wider world of tech.
A JavaScript meetup for Brighton & Hove