mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[be] Move Result into Utils/
The `Utils/` folder is meant to be a catch-all for code that doesn't have an obvious home in other directories.
This commit is contained in:
@@ -9,7 +9,7 @@ import { NodePath, Scope } from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
import invariant from "invariant";
|
||||
import { CompilerError, ErrorSeverity } from "../CompilerError";
|
||||
import { Err, Ok, Result } from "../lib/Result";
|
||||
import { Err, Ok, Result } from "../Utils/Result";
|
||||
import { assertExhaustive } from "../Utils/utils";
|
||||
import {
|
||||
BlockId,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Err, Ok, Result } from "../lib/Result";
|
||||
import { Err, Ok, Result } from "../Utils/Result";
|
||||
|
||||
function addMax10(a: number, b: number): Result<number, string> {
|
||||
const n = a + b;
|
||||
|
||||
Reference in New Issue
Block a user