How to use the data.maybe.Nothing function in data

To help you get started, we’ve selected a few data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github researchspace / researchspace / researchspace / web / src / main / components / search / web-components / SemanticSearchContextualizedResult.tsx View on Github external
constructor(props: InnerProps) {
    super(props);
    const initialState =
      this.props.context.searchProfileStore.map(
        profileStore => this.initialState(profileStore, props.ranges.map(Rdf.iri))
      ).getOrElse({
        relation: Maybe.Nothing(),
        relations: [],
      });

    this.state = initialState;
  }
github researchspace / researchspace / researchspace / web / src / main / components / arguments / premise / ObservationComponent.tsx View on Github external
constructor(props: ObservationComponentProps, context) {
    super(props, context);
    if (props.initialState) {
      this.state = props.initialState;
    } else {
      this.state = {
        iri: Maybe.Nothing(),
        title: '',
        note: '',
        place: null,
        date: null,
      };
    }
  }
github researchspace / researchspace / researchspace / web / src / main / components / arguments / premise / BeliefAdoptionComponent.tsx View on Github external
constructor(props: BeliefAdoptionComponentProps, context) {
    super(props, context);
    if (props.initialState) {
      this.state = props.initialState;
    } else {
      this.state = {
        iri: Maybe.Nothing(),
        title: '',
        note: '',
        belief: undefined,
      };
    }
  }
github researchspace / researchspace / researchspace / web / src / main / components / arguments / premise / InferenceMakingComponent.tsx View on Github external
constructor(props, context) {
    super(props, context);
    if (props.initialState) {
      this.state = props.initialState;
    } else {
      this.state = {
        iri: Maybe.Nothing(),
        title: '',
        note: '',
        logicType: undefined,
        premises: [],
        logics: [],
      };
    }
  }
github researchspace / researchspace / researchspace / web / src / main / components / alignment / CreateAlignmentAction.tsx View on Github external
constructor(props: CreateAlignmentActionProps, context: any) {
    super(props, context);
    this.state = {
      iri: Maybe.Nothing(),
      source: null,
      target: null,
      label: '',
      description: '',
    };
  }
  componentWillReceiveProps(props: CreateAlignmentActionProps) {

data

A Javascript data representation library.

Unknown
Latest version published 13 years ago

Package Health Score

36 / 100
Full package analysis