-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fill out type signatures for helpers
- Loading branch information
Showing
20 changed files
with
35 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module ModWarningHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module ModeratorHelper | ||
def text_bg: (untyped cls, ?nil content, **untyped) -> untyped | ||
def text_bg: (String cls, ?String? content, **untyped) -> ActiveSupport::SafeBuffer | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module NotificationsHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module PinnedLinksHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module PostsHelper | ||
def post_markdown: (untyped scope, untyped field_name) -> untyped | ||
def cancel_redirect_path: (untyped post) -> untyped | ||
def min_body_length: (untyped category) -> Integer | ||
def max_body_length: (untyped _category) -> Integer | ||
def min_title_length: (untyped category) -> Integer | ||
def max_title_length: (untyped _category) -> Integer? | ||
def post_markdown: ((String | Symbol) scope, (String | Symbol) field_name) -> String | ||
def cancel_redirect_path: (Post post) -> String | ||
def min_body_length: (Category? category) -> Integer | ||
def max_body_length: (Category? _category) -> Integer | ||
def min_title_length: (Category? category) -> Integer | ||
def max_title_length: (Category? _category) -> Integer | ||
def scrubber: -> PostScrubber | ||
|
||
class PostScrubber | ||
def initialize: -> void | ||
def skip_node?: (untyped node) -> untyped | ||
def skip_node?: (untyped node) -> bool | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module QuestionsHelper | ||
def my_vote: (untyped question) -> nil | ||
def my_vote: (Post question) -> Vote? | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module ReactionsHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module ReportsHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module SearchHelper | ||
def search_posts: -> untyped | ||
def filter_to_qualifiers: (untyped filter) -> Array[untyped] | ||
def active_filter: -> {default: false, name: untyped, min_score: untyped, max_score: untyped, min_answers: untyped, max_answers: untyped, include_tags: untyped, exclude_tags: untyped, status: untyped} | ||
def params_to_qualifiers: -> Array[untyped] | ||
def parse_search: (untyped raw_search) -> {qualifiers: untyped, search: untyped} | ||
def parse_qualifier_strings: (untyped qualifiers) -> untyped | ||
def qualifiers_to_sql: (Array[untyped] qualifiers, untyped query) -> untyped | ||
def numeric_value_sql: (untyped value) -> [String, untyped] | ||
def date_value_sql: (untyped value) -> [String, String, String] | ||
def search_posts: -> _ActiveRecord_Relation[Post, Integer] | ||
def filter_to_qualifiers: (Filter filter) -> Array[Hash[Symbol, untyped]] | ||
def active_filter: -> {default: bool, name: String?, min_score: Integer?, max_score: Integer?, min_answers: Integer?, max_answers: Integer?, include_tags: String?, exclude_tags: String?, status: String?} | ||
def params_to_qualifiers: -> Array[Hash[Symbol, untyped]] | ||
def parse_search: (String raw_search) -> {qualifiers: Array[String], search: String} | ||
def parse_qualifier_strings: (Array[String] qualifiers) -> Array[Hash[Symbol, untyped]] | ||
def qualifiers_to_sql: [T, PK] (Array[Hash[Symbol, untyped]] qualifiers, _ActiveRecord_Relation[T, PK] query) -> _ActiveRecord_Relation[T, PK] | ||
def numeric_value_sql: (String value) -> [String, String] | ||
def date_value_sql: (String value) -> [String, String, String] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module SeedsHelper | ||
def update_from_seeds: (untyped `type`, untyped unique_key, untyped value_attribute) -> untyped | ||
def update_from_seeds: (Symbol `type`, Symbol unique_key, Symbol value_attribute) -> void | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module SiteSettingsHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module SubscriptionsHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module SuggestedEditHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module TabsHelper | ||
@building_tabs: Array[untyped] | ||
@building_tabs: Array[ActiveSupport::SafeBuffer] | ||
|
||
def tabs: -> untyped | ||
def tab: (untyped text, untyped link_url, **untyped) -> Array[untyped] | ||
def tabs: -> ActiveSupport::SafeBuffer | ||
def tab: (String text, String link_url, **untyped) -> Array[ActiveSupport::SafeBuffer] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module TagSetsHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module TourHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module TwoFactorHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module UploadsHelper | ||
def upload_remote_url: (untyped blob) -> String | ||
def valid_image?: (untyped io) -> untyped | ||
def upload_remote_url: (ActiveStorage::Blob blob) -> String | ||
def valid_image?: (untyped io) -> bool | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module UsersHelper | ||
def avatar_url: (untyped user, ?Integer size) -> untyped | ||
def avatar_url: (User? user, ?Integer size) -> untyped | ||
def stack_oauth_url: -> String | ||
def can_change_category: (untyped user, untyped target) -> untyped | ||
def preference_choice: (untyped pref_config) -> untyped | ||
def default_filter: (untyped user_id, untyped category_id) -> untyped | ||
def set_filter_default: (untyped user_id, untyped filter_id, untyped category_id, untyped keep) -> untyped | ||
def user_preference: (untyped name, ?community: false) -> nil | ||
def deleted_user?: (untyped user) -> untyped | ||
def rtl_safe_username: (untyped user) -> String | ||
def user_link: (untyped user, ?nil url_opts, **untyped) -> untyped | ||
def sso_sign_in_enabled?: -> untyped | ||
def devise_sign_in_enabled?: -> untyped | ||
def can_change_category: (User user, Category target) -> bool | ||
def preference_choice: (Hash[String, untyped] pref_config) -> Array[[String, untyped]] | ||
def default_filter: (Integer user_id, Integer category_id) -> Filter? | ||
def set_filter_default: (Integer user_id, Integer filter_id, Integer category_id, bool keep) -> void | ||
def user_preference: (String name, ?community: bool) -> untyped | ||
def deleted_user?: (User? user) -> bool | ||
def rtl_safe_username: (User user) -> String | ||
def user_link: (User user, ?Hash[untyped, untyped]? url_opts, **untyped) -> ActiveSupport::SafeBuffer | ||
def sso_sign_in_enabled?: -> bool | ||
def devise_sign_in_enabled?: -> bool | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# TypeProf 0.21.7 | ||
|
||
# Classes | ||
module VotesHelper | ||
end |