These files are provided as a supplement to the article "Bitrise and React Native"
// Approaches 1-3 do not work, yielding errors in each of the functions. | |
// Approach 4 seems to work. | |
type MappedWithExtra1<T extends Record<string, unknown>> = { | |
[K in keyof T]?: string; | |
} & { extra?: string }; | |
type MappedWithExtra2<T extends Record<string, unknown>> = { | |
[K in keyof T as K | 'extra']?: string; | |
}; |
'use strict'; | |
const x1 = () => { | |
console.log('x1'); | |
throw new Error('hi'); | |
}; | |
const x2 = async () => { | |
console.log('x2'); | |
throw new Error('hi again'); |
PortSystem 1.0 | |
name nibtools | |
version 0.5.0 | |
categories emulators | |
license GPL mBSD | |
description nibtools disk transfer tools | |
long_description NIBTOOLS is a disk transfer program designed for copying original disks \ | |
and converting into the G64 and D64 disk image formats. These disk images \ |
In order to foster a welcoming and inclusive environment for everyone, we ask all members to read and agree to our Code of Conduct when joining. This Code of Conduct is a living document and will be updated from time to time as necessary. The current version can always be found at [LINK]. All changes will be announced in the [#META] channel of our Discord server as they are made. Agreeing to the Code of Conduct implies that you will monitor these changes and revoke your agreement if and when you no longer agree.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
In order to foster a welcoming and inclusive environment for everyone, we ask all members to read and agree to our Code of Conduct when joining. This Code of Conduct is a living document and will be updated from time to time as necessary. The current version can always be found at this link. All changes will be announced in the #meta channel of our Discord server as they are made. Agreeing to the Code of Conduct implies that you will monitor these changes and revoke your agreement if and when you no longer agree.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sex
#!/bin/bash | |
set -e | |
if (( $# != 1 )) | |
then | |
echo "Usage: $0 <file.c>" | |
exit 1 | |
fi |
const foo = (x: unknown) => { // function(x: unknown): object | null | |
if (x === null || typeof x !== 'object') { | |
throw Error(); | |
} | |
return x; | |
}; | |
const bar = (x: unknown) => { // function(x: unknown): object | |
if (typeof x !== 'object' || x === null) { | |
throw Error(); |
const foo: any = 42; | |
if (foo !== undefined && typeof foo !== 'string') { | |
throw new Error('foo must be a string if defined'); | |
} | |
console.log(foo); // foo: any | |
const bar: unknown = 42; |
import React, { | |
forwardRef, | |
FunctionComponent, | |
PropsWithChildren, | |
Ref, | |
} from 'react'; | |
import { View, Text, ViewProps } from 'react-native'; | |
/* | |
* First we create a simple function component which forwards a View ref: |