자주 찾는 링크
  • -언어 소개
  • -언어적 특징
  • -JS 인터롭
  • -빌드 시스템
문서 목차
언어 매뉴얼
모든 언어 기능에 대한 참조 문서
ReScript & React
ReactJS를 위한 1급 바인딩 모음
GenType
매끄럽게 진행되는 TypeScript 인터그레이션과 Flow 인터그레이션
Reanalyze
데드 코드 제거 & Termination 분석
더 알아보기
패키지 모음
써드 파티 라이브러리 및 바인딩 탐색하기
문법 검색기
모든 문법 검색하기
API플레이 그라운드블로그커뮤니티
  • 플레이 그라운드
  • 블로그
  • 커뮤니티
  • Twitter
  • GitHub
  • Forum
JS Module
Overview
  • JS
Submodules
  • Array2
  • Array
  • Console
  • Date
  • Dict
  • Exn
  • Float
  • Global
  • Int
  • Json
  • List
  • Math
  • NullUndefined
  • Null
  • Nullable
  • Obj
  • Option
  • Promise
  • Re
  • Result
    • t
  • String2
  • String
  • TypedArrayArrayBuffer
  • TypedArrayDataView
  • TypedArrayFloat32Array
  • TypedArrayFloat64Array
  • TypedArrayInt8Array
  • TypedArrayInt16Array
  • TypedArrayInt32Array
  • TypedArrayTypeS
  • TypedArrayUint8Array
  • TypedArrayUint8ClampedArray
  • TypedArrayUint16Array
  • TypedArrayUint32Array
  • TypedArray2ArrayBuffer
  • TypedArray2DataView
  • TypedArray2Float32Array
  • TypedArray2Float64Array
  • TypedArray2Int8Array
  • TypedArray2Int16Array
  • TypedArray2Int32Array
  • TypedArray2Uint8Array
  • TypedArray2Uint8ClampedArray
  • TypedArray2Uint16Array
  • TypedArray2Uint32Array
  • TypedArray2
  • TypedArray
  • Types
  • Undefined
  • Vector
API / Js / Result

You are currently looking at the < v8.2.0 docs (Reason v3.6 syntax edition). You can find the latest API docs here.

(These docs cover all versions between v3 to v8 and are equivalent to the old BuckleScript docs before the rebrand)

Result

Define the interface for result.

t

type t('good, 'bad) = | Ok('good) | Error('bad);